jfs: Fix sanity check in dbMount

[ Upstream commit 67373ca840 ]

MAXAG is a legitimate value for bmp->db_numag

Fixes: e63866a475 ("jfs: fix out-of-bounds in dbNextAG() and diAlloc()")

Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Dave Kleikamp 2024-10-22 09:40:37 -05:00 • committed by Greg Kroah-Hartman
commit cdf3ab1cf8