Skip to content
Snippets Groups Projects
Commit 947583ed authored by Harshit Mogalapalli's avatar Harshit Mogalapalli Committed by Greg Kroah-Hartman
Browse files

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


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>
Bug: 268174392
(cherry picked from commit 07b3672c)
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
Change-Id: I3534398af5e77e92a1ac48170e3ae4dffa42463b
parent 1e1264f2
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment