From: Heinz Mauelshagen Date: Wed, 29 Oct 2014 18:02:27 +0000 (+0100) Subject: dm raid: fix inaccessible superblocks causing oops in configure_discard_support X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~126^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d20c4b08be822ab1c5d333297f38f1b532d3febc;p=pandora-kernel.git dm raid: fix inaccessible superblocks causing oops in configure_discard_support Commit 48cf06bc5f ("dm raid: add discard support for RAID levels 4, 5 and 6") did not properly handle missing metadata device(s). A failing read of the superblock causes the metadata and data devices to be removed from the dev array in struct raid_set, setting references to both devices to NULL. configure_discard_support() nonetheless tries to access the data dev unconditionally causing an oops. Signed-off-by: Heinz Mauelshagen Signed-off-by: Mike Snitzer --- Reading git-diff-tree failed