Revert "jfs: UBSAN: shift-out-of-bounds in dbFindBits"

This reverts commit 41aeda6a14.
This commit is contained in:
Ksawlii 2024-11-24 00:23:06 +01:00
parent 6fa39039f4
commit 3797787773

View file

@ -3084,7 +3084,7 @@ static int dbFindBits(u32 word, int l2nb)
/* scan the word for nb free bits at nb alignments. /* 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) if ((mask & word) == mask)
break; break;
} }