Unverified Commit df41305a authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!11244 [sync] PR-11210: jfs: Fix shift-out-of-bounds in dbDiscardAG

parents d33012fa 99a52aba
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1687,6 +1687,8 @@ s64 dbDiscardAG(struct inode *ip, int agno, s64 minlen)
		} else if (rc == -ENOSPC) {
			/* search for next smaller log2 block */
			l2nb = BLKSTOL2(nblocks) - 1;
			if (unlikely(l2nb < 0))
				break;
			nblocks = 1LL << l2nb;
		} else {
			/* Trim any already allocated blocks */