提交 7fa5e85a 编写于 作者: T Tejun Heo

isdn/capi: unregister capictr notifier after init failure

capidrv_init() could leave capictr notifier dangling after init
failure.  Fix it.
Signed-off-by: NTejun Heo <tj@kernel.org>
Acked-by: NJan Kiszka <jan.kiszka@web.de>
上级 c8efcc25
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册