From: Neil Brown Date: Fri, 27 Jun 2008 22:31:17 +0000 (+1000) Subject: Fix error paths if md_probe fails. X-Git-Tag: v2.6.26-rc9~82^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bbbca3a0ee09293108b67835c6bdf6196d7bcb3;p=pandora-kernel.git Fix error paths if md_probe fails. md_probe can fail (e.g. alloc_disk could fail) without returning an error (as it alway returns NULL). So when we call mddev_find immediately afterwards, we need to check that md_probe actually succeeded. This means checking that mdev->gendisk is non-NULL. cc: Cc: Dave Jones Signed-off-by: Neil Brown --- Reading git-diff-tree failed