From: Boaz Harrosh Date: Wed, 16 May 2012 11:22:21 +0000 (+0300) Subject: exofs: Fix CRASH on very early IO errors. X-Git-Tag: v3.2.20~81 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27b4384504c58e94b0938b467261f893aeab9966;p=pandora-kernel.git 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 Stable: This is a bug since v3.2.0 Signed-off-by: Boaz Harrosh Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed