summaryrefslogtreecommitdiffstats
path: root/net/9p
diff options
context:
space:
mode:
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>2007-08-23 17:24:28 +0200
committerEric Van Hensbergen <ericvh@ericvh-laptop.austin.ibm.com>2007-08-23 17:25:05 +0200
commit02881d94780faa86e32952e46381f7cd4c78d5ac (patch)
tree3bd68a74e275ef3c59a646ff531a7c0582b17895 /net/9p
parent9p: remove deprecated v9fs_fid_lookup_remove() (diff)
downloadlinux-02881d94780faa86e32952e46381f7cd4c78d5ac.tar.xz
linux-02881d94780faa86e32952e46381f7cd4c78d5ac.zip
9p: fix bad error path in conversion routines
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> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'net/9p')
-rw-r--r--net/9p/conv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/9p/conv.c b/net/9p/conv.c
index f2a041cb508a..d979d958ea19 100644
--- a/net/9p/conv.c
+++ b/net/9p/conv.c
@@ -796,6 +796,7 @@ struct p9_fcall *p9_create_twrite_u(u32 fid, u64 offset, u32 count,
if (err) {
kfree(fc);
fc = ERR_PTR(err);
+ goto error;
}
if (buf_check_overflow(bufp)) {