[PATCH] it87: Fix oops on removal

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

 



Hi Greg,

Please push this to Linux as soon as possible.

* * * * *

Fix an oops on it87 module removal when no supported hardware was
found.

Signed-off-by: Jean Delvare <khali at linux-fr.org>
---
 drivers/hwmon/it87.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- linux-2.6.16-rc2.orig/drivers/hwmon/it87.c	2006-02-07 09:15:09.000000000 +0100
+++ linux-2.6.16-rc2/drivers/hwmon/it87.c	2006-02-07 16:51:22.000000000 +0100
@@ -1187,7 +1187,8 @@
 
 static void __exit sm_it87_exit(void)
 {
-	i2c_isa_del_driver(&it87_isa_driver);
+	if (isa_address)
+		i2c_isa_del_driver(&it87_isa_driver);
 	i2c_del_driver(&it87_driver);
 }
 


-- 
Jean Delvare




[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux