Revert "jfs: UBSAN: shift-out-of-bounds in dbFindBits"
This reverts commit 41aeda6a14
.
This commit is contained in:
parent
6fa39039f4
commit
3797787773
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue