]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: fix off-by-one in BUILD_BUG_ON check of __REQ_F_LAST_BIT
authorHao Xu <haoxu@linux.alibaba.com>
Tue, 7 Sep 2021 03:22:43 +0000 (11:22 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 10 Sep 2021 12:24:51 +0000 (06:24 -0600)
commit638408780795744fc949671dab073d6a23095d27
tree12b82b86bc5b144d6284bf845595223e7d5ab719
parente25edb684bbe0fc97e438442013edd1fe4ad8b12
io_uring: fix off-by-one in BUILD_BUG_ON check of __REQ_F_LAST_BIT

Build check of __REQ_F_LAST_BIT should be larger than, not equal or larger
than. It's perfectly valid to have __REQ_F_LAST_BIT be 32, as that means
that the last valid bit is 31 which does fit in the type.

Signed-off-by: Hao Xu <haoxu@linux.alibaba.com>
Link: https://lore.kernel.org/r/20210907032243.114190-1-haoxu@linux.alibaba.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c