[PATCH 2/2] mcb: Destroy IDA on module unload

From: Johannes Thumshirn
Date: Wed Oct 28 2015 - 03:23:20 EST


Destroy mcb_ida on module_unload

Signed-off-by: Johannes Thumshirn <jthumshirn@xxxxxxx>
---
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.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/