Skip to content

Commit

Permalink
9p: fix bad error path in conversion routines
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mariusz Kozlowski authored and Eric Van Hensbergen committed Aug 23, 2007
1 parent fbcb759 commit 02881d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/9p/conv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 02881d9

Please sign in to comment.