io_uring: Fix unsigned 'res' comparison with zero in io_fixup_rw_res()
authorHarshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Tue, 10 Jan 2023 16:46:47 +0000 (08:46 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2023 10:59:20 +0000 (11:59 +0100)
commite326ee018a2486f885b3345ee992805a14bf12cc
treef2647572f9cf14eea716326f5fc0a08ae6a91130
parentb2b6eefab43d68f02513c321900dfb56364ac1bd
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: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
io_uring/io_uring.c