mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Cc: Latchesar Ionkov <[email protected]> Cc: Eric Van Hensbergen <[email protected]> Cc: Andrew Morton <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
9700382c3c
commit
bbe06f6bf7
1 changed files with 1 additions and 0 deletions
|
|
@ -763,6 +763,7 @@ struct p9_fcall *p9_create_twrite(u32 fid, u64 offset, u32 count,
|
|||
if (err) {
|
||||
kfree(fc);
|
||||
fc = ERR_PTR(err);
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (buf_check_overflow(bufp)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue