Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6edebdee authored by Heinz Mauelshagen's avatar Heinz Mauelshagen Committed by Alasdair G Kergon
Browse files

dm stripe: fix init failure



Don't proceed if dm_stripe_init() fails to register itself as a dm target.

Signed-off-by: default avatarHeinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
parent 18776c73
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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) {