All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] [PATCH 4/5] it87: Fix oops on removal
@ 2006-02-14  6:48 Greg Kroah-Hartman
  0 siblings, 0 replies; only message in thread
From: Greg Kroah-Hartman @ 2006-02-14  6:48 UTC (permalink / raw)
  To: lm-sensors

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

Signed-off-by: Jean Delvare <khali at linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>

---

 drivers/hwmon/it87.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

be79c383254cd3eb50953d8c0a7cacdbf6db31c0
diff --git a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c
index e87d52c..d7a9401 100644
--- a/drivers/hwmon/it87.c
+++ b/drivers/hwmon/it87.c
@@ -1186,7 +1186,8 @@ static int __init sm_it87_init(void)
 
 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);
 }
 




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2006-02-14  6:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-14  6:48 [lm-sensors] [PATCH 4/5] it87: Fix oops on removal Greg Kroah-Hartman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.