[PATCH] isdn: fix missing unregister_capi_driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



unregister_capi_driver() needs to be called in module cleanup.
(It fixes data corruption by reloading t1isa driver)

Cc: Kai Germaschewski <[email protected]>
Cc: Karsten Keil <[email protected]>
Signed-off-by: Akinobu Mita <[email protected]>

 drivers/isdn/hardware/avm/t1isa.c |    1 +
 1 file changed, 1 insertion(+)

Index: work-fault-inject/drivers/isdn/hardware/avm/t1isa.c
===================================================================
--- work-fault-inject.orig/drivers/isdn/hardware/avm/t1isa.c
+++ work-fault-inject/drivers/isdn/hardware/avm/t1isa.c
@@ -584,6 +584,7 @@ static void __exit t1isa_exit(void)
 {
 	int i;
 
+	unregister_capi_driver(&capi_driver_t1isa);
 	for (i = 0; i < MAX_CARDS; i++) {
 		if (!io[i])
 			break;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux