Skip to content

Commit

Permalink
dm stripe: fix init failure
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Heinz Mauelshagen authored and Alasdair G Kergon committed Nov 13, 2008
1 parent 18776c7 commit 6edebde
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/md/dm-stripe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6edebde

Please sign in to comment.