]> www.infradead.org Git - users/hch/misc.git/commit
badblocks: Fix error shitf ops
authorLi Nan <linan122@huawei.com>
Thu, 27 Feb 2025 07:54:56 +0000 (15:54 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 6 Mar 2025 15:03:27 +0000 (08:03 -0700)
commit7d83c5d73c1a3c7b71ba70d0ad2ae66e7a0e7ace
tree0fe53b629104e7d6553b589f39ae61b005c85a3c
parent85f72925000e924291a0ebf63d2234994a4f22bd
badblocks: Fix error shitf ops

'bb->shift' is used directly in badblocks. It is wrong, fix it.

Fixes: 3ea3354cb9f0 ("badblocks: improve badblocks_check() for multiple ranges handling")
Signed-off-by: Li Nan <linan122@huawei.com>
Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Acked-by: Coly Li <colyli@kernel.org>
Link: https://lore.kernel.org/r/20250227075507.151331-2-zhengqixing@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/badblocks.c