aboutsummaryrefslogtreecommitdiff
path: root/arch/microblaze/Kconfig
diff options
context:
space:
mode:
authorBoaz Harrosh <bharrosh@panasas.com>2012-05-16 14:22:21 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-10 00:36:05 +0900
commitedb302ba464c6151ddb24ba4fb18c8e0a0ef9f7c (patch)
treee9494bf0cf0fb50600a65a9db23d240c2cdca9be /arch/microblaze/Kconfig
parentf18a511703b6667edee4703fdd8b73ca18e232a4 (diff)
exofs: Fix CRASH on very early IO errors.
commit 6abe4a87f7bc7978705c386dbba0ca0c7790b3ec upstream. 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> Signed-off-by: Boaz Harrosh <bharrosh@panasas.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/microblaze/Kconfig')
0 files changed, 0 insertions, 0 deletions