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

!14793 jfs: fix shift-out-of-bounds in dbSplit

parents 54e67639 0a43e363
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1888,6 +1888,9 @@ dbAllocCtl(struct bmap * bmp, s64 nblocks, int l2nb, s64 blkno, s64 * results)
			return -EIO;
		dp = (struct dmap *) mp->data;

		if (dp->tree.budmin < 0)
			return -EIO;

		/* try to allocate the blocks.
		 */
		rc = dbAllocDmapLev(bmp, dp, (int) nblocks, l2nb, results);