From: Heinz Mauelshagen Date: Thu, 13 Nov 2008 23:38:56 +0000 (+0000) Subject: dm stripe: fix init failure X-Git-Tag: v2.6.28-rc5~17^2~4 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6edebdee48729ab4ba564bbfcb8dbf6a6cd68a39;p=linux-2.6-omap-h63xx.git dm stripe: fix init failure Don't proceed if dm_stripe_init() fails to register itself as a dm target. Signed-off-by: Heinz Mauelshagen Signed-off-by: Alasdair G Kergon --- diff --git a/drivers/md/dm-stripe.c b/drivers/md/dm-stripe.c index a2d068dbe9e..9e4ef88d421 100644 --- a/drivers/md/dm-stripe.c +++ b/drivers/md/dm-stripe.c @@ -320,8 +320,10 @@ int __init dm_stripe_init(void) int r; r = dm_register_target(&stripe_target); - if (r < 0) + if (r < 0) { DMWARN("target registration failed"); + return r; + } kstriped = create_singlethread_workqueue("kstriped"); if (!kstriped) {