From: Tejun Heo Date: Fri, 24 Dec 2010 14:59:05 +0000 (+0100) Subject: isdn/capi: unregister capictr notifier after init failure X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7fa5e85a0ab9ed5d2d8b77eec7976c88a5911bda;p=linux-beck.git isdn/capi: unregister capictr notifier after init failure capidrv_init() could leave capictr notifier dangling after init failure. Fix it. Signed-off-by: Tejun Heo Acked-by: Jan Kiszka --- diff --git a/drivers/isdn/capi/capidrv.c b/drivers/isdn/capi/capidrv.c index e54e79d4e2c1..92607ed25e2e 100644 --- a/drivers/isdn/capi/capidrv.c +++ b/drivers/isdn/capi/capidrv.c @@ -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; }