Skip to content

Commit 02a6073

Browse files
committed
Merge branch 'io_uring-7.1' into for-next
* io_uring-7.1: io_uring/poll: fix signed comparison in io_poll_get_ownership()
2 parents 221dbe5 + 326941b commit 02a6073

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

io_uring/poll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static bool io_poll_get_ownership_slowpath(struct io_kiocb *req)
9393
*/
9494
static inline bool io_poll_get_ownership(struct io_kiocb *req)
9595
{
96-
if (unlikely(atomic_read(&req->poll_refs) >= IO_POLL_REF_BIAS))
96+
if (unlikely((unsigned int)atomic_read(&req->poll_refs) >= IO_POLL_REF_BIAS))
9797
return io_poll_get_ownership_slowpath(req);
9898
return !(atomic_fetch_inc(&req->poll_refs) & IO_POLL_REF_MASK);
9999
}

0 commit comments

Comments
 (0)