From: NeilBrown Date: Thu, 21 Feb 2013 04:36:38 +0000 (+1100) Subject: md: raid0: fix error return from create_stripe_zones. X-Git-Tag: v3.9-rc2~28^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58ebb34c49fcfcaa029e4b1c1453d92583900f9a;p=pandora-kernel.git md: raid0: fix error return from create_stripe_zones. Create_stripe_zones returns an error slightly differently to raid0_run and to raid0_takeover_*. The error returned used by the second was wrong and an error would result in mddev->private being set to NULL and sooner or later a crash. So never return NULL, return ERR_PTR(err), not NULL from create_stripe_zones. This bug has been present since 2.6.35 so the fix is suitable for any kernel since then. Cc: stable@vger.kernel.org Signed-off-by: NeilBrown --- Reading git-diff-tree failed