OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8efcc2
)
isdn/capi: unregister capictr notifier after init failure
author
Tejun Heo
<tj@kernel.org>
Fri, 24 Dec 2010 14:59:05 +0000
(15:59 +0100)
committer
Tejun Heo
<tj@kernel.org>
Fri, 24 Dec 2010 14:59:05 +0000
(15:59 +0100)
capidrv_init() could leave capictr notifier dangling after init
failure. Fix it.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Jan Kiszka <jan.kiszka@web.de>
drivers/isdn/capi/capidrv.c
patch
|
blob
|
history
diff --git
a/drivers/isdn/capi/capidrv.c
b/drivers/isdn/capi/capidrv.c
index
e54e79d
..
92607ed
100644
(file)
--- 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;
}