aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2024-10-24 12:47:01 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2024-10-24 12:47:01 -0700
commit6cc65abee8ee1ef5cfeb2748157be232262956a8 (patch)
tree281991edf79e10fa552ad7f6cc8cf18c869bb03b
parentMerge tag 'bcachefs-2024-10-22' of https://github.com/koverstreet/bcachefs (diff)
parentjfs: Fix sanity check in dbMount (diff)
downloadwireguard-linux-6cc65abee8ee1ef5cfeb2748157be232262956a8.tar.xz
wireguard-linux-6cc65abee8ee1ef5cfeb2748157be232262956a8.zip
Merge tag 'jfs-6.12-rc5' of github.com:kleikamp/linux-shaggy
Pull jfs fix from David Kleikamp: "Fix a regression introduced in 6.12-rc1" * tag 'jfs-6.12-rc5' of github.com:kleikamp/linux-shaggy: jfs: Fix sanity check in dbMount
-rw-r--r--fs/jfs/jfs_dmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jfs/jfs_dmap.c b/fs/jfs/jfs_dmap.c
index 974ecf5e0d95..3ab410059dc2 100644
--- a/fs/jfs/jfs_dmap.c
+++ b/fs/jfs/jfs_dmap.c
@@ -187,7 +187,7 @@ int dbMount(struct inode *ipbmap)
}
bmp->db_numag = le32_to_cpu(dbmp_le->dn_numag);
- if (!bmp->db_numag || bmp->db_numag >= MAXAG) {
+ if (!bmp->db_numag || bmp->db_numag > MAXAG) {
err = -EINVAL;
goto err_release_metapage;
}