Commit 53625a3e authored by Harshit Mogalapalli's avatar Harshit Mogalapalli Committed by zhaoxiaoqiang11
Browse files

io_uring: Fix unsigned 'res' comparison with zero in io_fixup_rw_res()

stable inclusion
from stable-v5.10.163
commit 07b3672c4090d1e8147b1ae9c2546d8a8d8e13ae
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7PJ9N

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=07b3672c4090d1e8147b1ae9c2546d8a8d8e13ae



----------------------------------------------------

Smatch warning: io_fixup_rw_res() warn:
	unsigned 'res' is never less than zero.

Change type of 'res' from unsigned to long.

Fixes: d6b7efc722a2 ("io_uring/rw: fix error'ed retry return values")
Signed-off-by: default avatarHarshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarzhaoxiaoqiang11 <zhaoxiaoqiang11@jd.com>
parent c93904a0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment