aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>2007-07-19 17:27:22 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2007-08-09 14:27:39 -0700
commitb3b590287ca3c36e0a3fa28d626f126dd5226fc4 (patch)
treed2eb1ab76c275a63561c6929c9813008fbc71e93 /fs
parent608fe2dd0715bc40d43e9b0c0fb7343e4fd7d719 (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.c1
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)) {