alistair23-linux/fs/exofs
Boaz Harrosh 6abe4a87f7 exofs: Fix CRASH on very early IO errors.
If at exofs_fill_super() we had an early termination
do to any error, like an IO error while reading the
super-block. We would crash inside exofs_free_sbi().

This is because sbi->oc.numdevs was set to 1, before
we actually have a device table at all.

Fix it by moving the sbi->oc.numdevs = 1 to after the
allocation of the device table.

Reported-by: Johannes Schild <JSchild@gmx.de>

Stable: This is a bug since v3.2.0
CC: Stable Tree <stable@kernel.org>
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
2012-05-20 19:42:41 +03:00
..
BUGS exofs: Documentation 2009-03-31 19:44:38 +03:00
common.h Fix common misspellings 2011-03-31 11:26:23 -03:00
dir.c exofs: remove the second argument of k[un]map_atomic() 2012-03-20 21:48:22 +08:00
exofs.h exofs: propagate umode_t 2012-01-03 22:55:05 -05:00
file.c fs: push i_mutex and filemap_write_and_wait down into ->fsync() handlers 2011-07-20 20:47:59 -04:00
inode.c exofs: propagate umode_t 2012-01-03 22:55:05 -05:00
Kbuild ore: RAID5 read 2011-10-24 16:55:36 -07:00
Kconfig ore: FIX breakage when MISC_FILESYSTEMS is not set 2012-01-06 16:48:14 +02:00
Kconfig.ore ore: FIX breakage when MISC_FILESYSTEMS is not set 2012-01-06 16:48:14 +02:00
namei.c vfs: check i_nlink limits in vfs_{mkdir,rename_dir,link} 2012-03-20 21:29:32 -04:00
ore.c ore: fix BUG_ON, too few sgs when reading 2012-01-06 16:49:07 +02:00
ore_raid.c ore: Must support none-PAGE-aligned IO 2012-01-08 10:43:13 +02:00
ore_raid.h ore: RAID5 Write 2011-10-24 17:15:33 -07:00
super.c exofs: Fix CRASH on very early IO errors. 2012-05-20 19:42:41 +03:00
symlink.c exofs: Remove IBM copyrights 2009-06-21 17:53:47 +03:00