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

Commit 7fa5e85a authored by Tejun Heo's avatar Tejun Heo
Browse files

isdn/capi: unregister capictr notifier after init failure



capidrv_init() could leave capictr notifier dangling after init
failure.  Fix it.

Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Acked-by: default avatarJan Kiszka <jan.kiszka@web.de>
parent c8efcc25
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2297,6 +2297,7 @@ static int __init capidrv_init(void)

	errcode = capi20_get_profile(0, &profile);
	if (errcode != CAPI_NOERROR) {
		unregister_capictr_notifier(&capictr_nb);
		capi20_release(&global.ap);
		return -EIO;
	}