mcb: Destroy IDA on module unload
authorJohannes Thumshirn <jthumshirn@suse.de>
Wed, 28 Oct 2015 07:22:16 +0000 (08:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2015 00:02:16 +0000 (09:02 +0900)
Destroy mcb_ida on module_unload

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mcb/mcb-core.c

index 9018ab83517adcc8aedb239744a2842a0391b3dc..a4be451074e5caae0ebceff1236b3348ede5951b 100644 (file)
@@ -409,6 +409,7 @@ static int mcb_init(void)
 
 static void mcb_exit(void)
 {
+       ida_destroy(&mcb_ida);
        bus_unregister(&mcb_bus_type);
 }