We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b61e69b commit ddf2846Copy full SHA for ddf2846
fs/jfs/jfs_dmap.c
@@ -204,6 +204,10 @@ int dbMount(struct inode *ipbmap)
204
bmp->db_aglevel = le32_to_cpu(dbmp_le->dn_aglevel);
205
bmp->db_agheight = le32_to_cpu(dbmp_le->dn_agheight);
206
bmp->db_agwidth = le32_to_cpu(dbmp_le->dn_agwidth);
207
+ if (!bmp->db_agwidth) {
208
+ err = -EINVAL;
209
+ goto err_release_metapage;
210
+ }
211
bmp->db_agstart = le32_to_cpu(dbmp_le->dn_agstart);
212
bmp->db_agl2size = le32_to_cpu(dbmp_le->dn_agl2size);
213
if (bmp->db_agl2size > L2MAXL2SIZE - L2MAXAG ||
0 commit comments