diff options
author | Heinz Mauelshagen <heinzm@redhat.com> | 2008-11-13 23:38:56 +0000 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2008-11-13 23:38:56 +0000 |
commit | 6edebdee48729ab4ba564bbfcb8dbf6a6cd68a39 (patch) | |
tree | 29b92a961e503e9257e3f34fc2e933d51315ec42 /drivers/md | |
parent | 18776c7316545482a02bfaa2629a2aa1afc48357 (diff) | |
download | linux-6edebdee48729ab4ba564bbfcb8dbf6a6cd68a39.tar.bz2 |
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 <heinzm@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm-stripe.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/md/dm-stripe.c b/drivers/md/dm-stripe.c index a2d068dbe9e2..9e4ef88d421e 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) { |