diff options
author | Mariusz Kozlowski <m.kozlowski@tuxland.pl> | 2007-07-31 00:39:13 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-31 15:39:42 -0700 |
commit | bbe06f6bf7e764a9eb0e3cdcec2b12c743f35757 (patch) | |
tree | 29e2cd320a128f674e67a04d601d4b5e025651f9 /net/9p | |
parent | 9700382c3c9ff3e673e587084d76eedb3ba88668 (diff) | |
download | linux-3.10-bbe06f6bf7e764a9eb0e3cdcec2b12c743f35757.tar.gz linux-3.10-bbe06f6bf7e764a9eb0e3cdcec2b12c743f35757.tar.bz2 linux-3.10-bbe06f6bf7e764a9eb0e3cdcec2b12c743f35757.zip |
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: Latchesar Ionkov <lucho@ionkov.net>
Cc: Eric Van Hensbergen <ericvh@ericvh.myip.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net/9p')
-rw-r--r-- | net/9p/conv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/9p/conv.c b/net/9p/conv.c index 37451178e76..f2a041cb508 100644 --- a/net/9p/conv.c +++ b/net/9p/conv.c @@ -763,6 +763,7 @@ struct p9_fcall *p9_create_twrite(u32 fid, u64 offset, u32 count, if (err) { kfree(fc); fc = ERR_PTR(err); + goto error; } if (buf_check_overflow(bufp)) { |