commit | 02881d94780faa86e32952e46381f7cd4c78d5ac | [log] [tgz] |
---|---|---|
author | Mariusz Kozlowski <m.kozlowski@tuxland.pl> | Thu Aug 23 10:24:28 2007 -0500 |
committer | Eric Van Hensbergen <ericvh@ericvh-laptop.austin.ibm.com> | Thu Aug 23 10:25:05 2007 -0500 |
tree | 3bd68a74e275ef3c59a646ff531a7c0582b17895 | |
parent | fbcb7599e411309cf47a2b834d3546469c153cf4 [diff] [blame] |
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>
diff --git a/net/9p/conv.c b/net/9p/conv.c index f2a041c..d979d95 100644 --- a/net/9p/conv.c +++ b/net/9p/conv.c
@@ -796,6 +796,7 @@ if (err) { kfree(fc); fc = ERR_PTR(err); + goto error; } if (buf_check_overflow(bufp)) {