mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Angus Sawyer <angus.sawyer@dsl.pipex.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] EXT3 fs divide by 0 in ext3_fill_super (2.5.44)
Date: Mon, 28 Oct 2002 13:17:16 +0000	[thread overview]
Message-ID: <200210281317.16268.angus.sawyer@dsl.pipex.com> (raw)

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


                 reply	other threads:[~2002-10-28 13:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200210281317.16268.angus.sawyer@dsl.pipex.com \
    --to=angus.sawyer@dsl.pipex.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®