diff options
author | Mariusz Kozlowski <m.kozlowski@tuxland.pl> | 2007-07-19 17:27:22 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-08-09 14:27:39 -0700 |
commit | b3b590287ca3c36e0a3fa28d626f126dd5226fc4 (patch) | |
tree | d2eb1ab76c275a63561c6929c9813008fbc71e93 /fs | |
parent | 608fe2dd0715bc40d43e9b0c0fb7343e4fd7d719 (diff) |
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>
Diffstat (limited to 'fs')
-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 a3ed571eee3..923d75c9ea9 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)) { |