linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mcb: Destroy IDA on module unload
@ 2015-10-22  8:34 Johannes Thumshirn
  0 siblings, 0 replies; only message in thread
From: Johannes Thumshirn @ 2015-10-22  8:34 UTC (permalink / raw)
  To: Johannes Thumshirn
  Cc: Andreas Werner, Greg Kroah-Hartman, linux-kernel, Johannes Thumshirn

Destroy mcb_ida on module_unload

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
---
 drivers/mcb/mcb-core.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mcb/mcb-core.c b/drivers/mcb/mcb-core.c
index 9018ab8..a4be451 100644
--- a/drivers/mcb/mcb-core.c
+++ b/drivers/mcb/mcb-core.c
@@ -409,6 +409,7 @@ static int mcb_init(void)
 
 static void mcb_exit(void)
 {
+	ida_destroy(&mcb_ida);
 	bus_unregister(&mcb_bus_type);
 }
 
-- 
2.6.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-10-22  8:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-22  8:34 [PATCH] mcb: Destroy IDA on module unload Johannes Thumshirn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).