EXT3 fs divide by 0 in ext3_fill_super (2.5.44)
PATCH 1/1 EXT3 fs divide by 0 in ext3_fill_super (2.5.44)
problem:
attempting to mount an ext3 fs on a stopped md/raid1 array caused a divide by 0 error in ext3_fill_super.
Fix duplicates check already in ext2.
patch:
fs/ext3/super.c +4 -0
@@ -986,6 +986,10 @@ goto out_fail; blocksize =sb_min_blocksize (sb,EXT3_MIN_BLOCK_SIZE ); +if (!blocksize) { +printk (KERN_ERR "EXT3-fs: unable to set blocksize\n" ); + goto out_fail; + }/* * The ext3 superblock will not be buffer aligned for other than 1kB