projects
/
wrapfs-4.14.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
608fe2d
)
fs: 9p/conv.c error path fix
author
Mariusz Kozlowski
<m.kozlowski@tuxland.pl>
Fri, 20 Jul 2007 00:27:22 +0000
(17:27 -0700)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 9 Aug 2007 21:27:39 +0000
(14:27 -0700)
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>
fs/9p/conv.c
patch
|
blob
|
history
diff --git
a/fs/9p/conv.c
b/fs/9p/conv.c
index a3ed571eee31b3754224aad4118c517abfe1def1..923d75c9ea9f8792d52e95e611b85f38709e163d 100644
(file)
--- 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)) {