Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932091AbWB0Wpl (ORCPT ); Mon, 27 Feb 2006 17:45:41 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751760AbWB0WpG (ORCPT ); Mon, 27 Feb 2006 17:45:06 -0500 Received: from 216-99-217-87.dsl.aracnet.com ([216.99.217.87]:45955 "EHLO sorel.sous-sol.org") by vger.kernel.org with ESMTP id S1751781AbWB0WbW (ORCPT ); Mon, 27 Feb 2006 17:31:22 -0500 Message-Id: <20060227223351.159851000@sorel.sous-sol.org> References: <20060227223200.865548000@sorel.sous-sol.org> Date: Mon, 27 Feb 2006 14:32:19 -0800 From: Chris Wright To: linux-kernel@vger.kernel.org, stable@kernel.org Cc: Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , torvalds@osdl.org, akpm@osdl.org, alan@lxorguk.ukuu.org.uk, Jean Delvare , Greg Kroah-Hartman Subject: [patch 19/39] [PATCH] it87: Fix oops on removal Content-Disposition: inline; filename=it87-fix-oops-on-removal.patch Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 978 Lines: 33 -stable review patch. If anyone has any objections, please let us know. ------------------ 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); } -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/