]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] simple EXT2 patch
authorMikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
Sun, 9 Feb 2003 09:13:18 +0000 (01:13 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sun, 9 Feb 2003 09:13:18 +0000 (01:13 -0800)
Do not crash on null pointer dereference, if cannot reread superblock.

fs/ext2/super.c

index 55bbb5595337b0e5f58192204840ba98f4afc072..2b0faad8aff47f59960d3eab1f645a3fa3c600ce 100644 (file)
@@ -673,7 +673,7 @@ static int ext2_fill_super(struct super_block *sb, void *data, int silent)
                if(!bh) {
                        printk("EXT2-fs: Couldn't read superblock on "
                               "2nd try.\n");
-                       goto failed_mount;
+                       goto failed_sbi;
                }
                es = (struct ext2_super_block *) (((char *)bh->b_data) + offset);
                sbi->s_es = es;