From 379778777356e4c171bfd8840d9b119bd8bc0e09 Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Sun, 24 Nov 2024 00:23:06 +0100 Subject: [PATCH] Revert "jfs: UBSAN: shift-out-of-bounds in dbFindBits" This reverts commit 41aeda6a14d210195cc219d5e1bb85ce64506a96. --- fs/jfs/jfs_dmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/jfs/jfs_dmap.c b/fs/jfs/jfs_dmap.c index 9728a244c..9ad8db117 100755 --- a/fs/jfs/jfs_dmap.c +++ b/fs/jfs/jfs_dmap.c @@ -3084,7 +3084,7 @@ static int dbFindBits(u32 word, int l2nb) /* scan the word for nb free bits at nb alignments. */ - for (bitno = 0; mask != 0; bitno += nb, mask = (mask >> nb)) { + for (bitno = 0; mask != 0; bitno += nb, mask >>= nb) { if ((mask & word) == mask) break; }