diff options
author | Mariusz Kozlowski <m.kozlowski@tuxland.pl> | 2007-07-19 17:27:22 -0700 |
---|---|---|
committer | Willy Tarreau <w@1wt.eu> | 2007-08-25 17:24:10 +0200 |
commit | 4297d4bd6cdf6dbe0d30d13894816a6429418d19 (patch) | |
tree | c0fc6113d347f7550defeacba389cfd58ca42fae | |
parent | faae60c8fef63043850b17b105f42c075d4d74f9 (diff) | |
download | lwn-4297d4bd6cdf6dbe0d30d13894816a6429418d19.tar.gz lwn-4297d4bd6cdf6dbe0d30d13894816a6429418d19.zip |
[PATCH] fs: 9p/conv.c error path fix
When buf_check_overflow() returns != 0 we will hit kfree(ERR_PTR(err))
and it will not be happy about it.
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Acked-by: Eric Van Hensbergen <ericvh@gmail.com>
-rw-r--r-- | fs/9p/conv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/9p/conv.c b/fs/9p/conv.c index a3ed571eee31..923d75c9ea9f 100644 --- a/fs/9p/conv.c +++ b/fs/9p/conv.c @@ -742,6 +742,7 @@ struct v9fs_fcall *v9fs_create_twrite(u32 fid, u64 offset, u32 count, if (err) { kfree(fc); fc = ERR_PTR(err); + goto error; } if (buf_check_overflow(bufp)) { |