From ca47e17bcdcf357337efb0ddf6aaba516b7aa5d1 Mon Sep 17 00:00:00 2001 From: Chris Wright Date: Mon, 20 Feb 2006 21:41:05 -0800 Subject: [PATCH] hwmon it87 oops on removal fix from Jean Delvare --- queue/it87-fix-oops-on-removal.patch | 30 ++++++++++++++++++++++++++++ queue/series | 1 + 2 files changed, 31 insertions(+) create mode 100644 queue/it87-fix-oops-on-removal.patch diff --git a/queue/it87-fix-oops-on-removal.patch b/queue/it87-fix-oops-on-removal.patch new file mode 100644 index 00000000000..25220a42ad7 --- /dev/null +++ b/queue/it87-fix-oops-on-removal.patch @@ -0,0 +1,30 @@ +From stable-bounces@linux.kernel.org Mon Feb 20 00:58:52 2006 +Date: Sun, 19 Feb 2006 15:18:04 +0100 +From: Jean Delvare +To: stable@kernel.org +Cc: +Subject: [PATCH] it87: Fix oops on removal + +Fix an oops on it87 module removal when no supported hardware was +found. + +Signed-off-by: Jean Delvare +Signed-off-by: Greg Kroah-Hartman +Signed-off-by: Chris Wright +--- + + drivers/hwmon/it87.c | 3 ++- + 1 files changed, 2 insertions(+), 1 deletion(-) + +--- linux-2.6.15.4.orig/drivers/hwmon/it87.c ++++ linux-2.6.15.4/drivers/hwmon/it87.c +@@ -1180,7 +1180,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); + } + diff --git a/queue/series b/queue/series index 810e45a62d8..d7c43c1034c 100644 --- a/queue/series +++ b/queue/series @@ -16,3 +16,4 @@ fix-deadlock-in-br_stp_disable_bridge.patch fix-zap_thread-s-ptrace-related-problems.patch fix-deadlock-in-ext2.patch sys_mbind-sanity-checking.patch +it87-fix-oops-on-removal.patch -- 2.47.3