summaryrefslogtreecommitdiff
path: root/io_uring
diff options
context:
space:
mode:
authorHarshit Mogalapalli <harshit.m.mogalapalli@oracle.com>2023-01-10 08:46:47 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-12 11:59:20 +0100
commite326ee018a2486f885b3345ee992805a14bf12cc (patch)
treef2647572f9cf14eea716326f5fc0a08ae6a91130 /io_uring
parentb2b6eefab43d68f02513c321900dfb56364ac1bd (diff)
downloadlinux-rt-e326ee018a2486f885b3345ee992805a14bf12cc.tar.gz
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>
Diffstat (limited to 'io_uring')
-rw-r--r--io_uring/io_uring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c
index 5231b859665e..c587221a289c 100644
--- a/io_uring/io_uring.c
+++ b/io_uring/io_uring.c
@@ -2701,7 +2701,7 @@ static bool __io_complete_rw_common(struct io_kiocb *req, long res)
return false;
}
-static inline int io_fixup_rw_res(struct io_kiocb *req, unsigned res)
+static inline int io_fixup_rw_res(struct io_kiocb *req, long res)
{
struct io_async_rw *io = req->async_data;