Commit 02881d94780faa86e32952e46381f7cd4c78d5ac

Authored by Mariusz Kozlowski
Committed by Eric Van Hensbergen
1 parent fbcb7599e4

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -796,6 +796,7 @@
796 796 if (err) {
797 797 kfree(fc);
798 798 fc = ERR_PTR(err);
  799 + goto error;
799 800 }
800 801  
801 802 if (buf_check_overflow(bufp)) {