All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2.6.36-rc7 1/2] isdn/capi: unregister capictr notifier after init failure
@ 2010-10-15 12:42 Tejun Heo
  2010-10-15 12:43 ` [PATCH v2.6.36-rc7 2/2] isdn/capi: make kcapi use a separate workqueue Tejun Heo
  2010-10-16 11:00 ` [PATCH v2.6.36-rc7 1/2] isdn/capi: unregister capictr notifier after init failure Jan Kiszka
  0 siblings, 2 replies; 4+ messages in thread
From: Tejun Heo @ 2010-10-15 12:42 UTC (permalink / raw)
  To: Karsten Keil, Armin Schindler, lkml, Jan Kiszka; +Cc: Andrew Morton

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

Signed-off-by: Tejun Heo <tj@kernel.org>
---
 drivers/isdn/capi/capidrv.c |    1 +
 1 file changed, 1 insertion(+)

Index: work/drivers/isdn/capi/capidrv.c
===================================================================
--- work.orig/drivers/isdn/capi/capidrv.c
+++ work/drivers/isdn/capi/capidrv.c
@@ -2288,6 +2288,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;
 	}

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-10-16 11:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-15 12:42 [PATCH v2.6.36-rc7 1/2] isdn/capi: unregister capictr notifier after init failure Tejun Heo
2010-10-15 12:43 ` [PATCH v2.6.36-rc7 2/2] isdn/capi: make kcapi use a separate workqueue Tejun Heo
2010-10-16 11:00   ` Jan Kiszka
2010-10-16 11:00 ` [PATCH v2.6.36-rc7 1/2] isdn/capi: unregister capictr notifier after init failure Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.