Skip to contentSkip to conversation

it87: Fix oops on removal

PATCH New Jean Delvare 1 participant 1 message Feb 7, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 it87: Fix oops on removal

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(-)
drivers/hwmon/it87.c +2 -1
@@ -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);
 }
 
Signature · 1 line
Jean Delvare