Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02881d94 authored by Mariusz Kozlowski's avatar Mariusz Kozlowski Committed by Eric Van Hensbergen
Browse files

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: default avatarMariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: default avatarEric Van Hensbergen <ericvh@gmail.com>
parent fbcb7599
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)) {