diff options
author | Boaz Harrosh <bharrosh@panasas.com> | 2012-05-16 14:22:21 +0300 |
---|---|---|
committer | Boaz Harrosh <bharrosh@panasas.com> | 2012-05-20 19:42:41 +0300 |
commit | 6abe4a87f7bc7978705c386dbba0ca0c7790b3ec (patch) | |
tree | 02f99246491cc2a76bdb592860537c63ee0ef480 /README | |
parent | 36be50515fe2aef61533b516fa2576a2c7fe7664 (diff) | |
download | linux-6abe4a87f7bc7978705c386dbba0ca0c7790b3ec.tar.gz linux-6abe4a87f7bc7978705c386dbba0ca0c7790b3ec.tar.bz2 linux-6abe4a87f7bc7978705c386dbba0ca0c7790b3ec.zip |
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>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions