* [PATCH] EXT3 fs divide by 0 in ext3_fill_super (2.5.44)
@ 2002-10-28 13:17 Angus Sawyer
0 siblings, 0 replies; only message in thread
From: Angus Sawyer @ 2002-10-28 13:17 UTC (permalink / raw)
To: linux-kernel
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:
--- linux-2.5.44/fs/ext3/super.c Wed Oct 23 16:19:08 2002
+++ linux/fs/ext3/super.c Mon Oct 28 11:29:33 2002
@@ -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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-10-28 13:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-28 13:17 [PATCH] EXT3 fs divide by 0 in ext3_fill_super (2.5.44) Angus Sawyer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®