/[linux-patches]/genpatches-2.6/trunk/2.6.14/1448_15.5_it87-oops-on-removal.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.14/1448_15.5_it87-oops-on-removal.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 328 - (show annotations) (download) (as text)
Tue Mar 14 13:34:17 2006 UTC (14 years, 7 months ago) by johnm
File MIME type: text/x-diff
File size: 827 byte(s)
2.6.14-11, rebase against local tree
1 From: Jean Delvare <khali@linux-fr.org>
2 Date: Sun, 19 Feb 2006 14:18:04 +0000 (+0100)
3 Subject: [PATCH] it87: Fix oops on removal
4 X-Git-Url: http://www.kernel.org/git/?p=linux/kernel/git/chrisw/linux-2.6.15.y.git;a=commitdiff;h=a8c4e1c4d248f300c2ab6d6b5e9e1b78ebb212fd
5
6 [PATCH] it87: Fix oops on removal
7
8 Fix an oops on it87 module removal when no supported hardware was
9 found.
10
11 Signed-off-by: Jean Delvare <khali@linux-fr.org>
12 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 Signed-off-by: Chris Wright <chrisw@sous-sol.org>
14 ---
15
16 --- a/drivers/hwmon/it87.c
17 +++ b/drivers/hwmon/it87.c
18 @@ -1180,7 +1180,8 @@ static int __init sm_it87_init(void)
19
20 static void __exit sm_it87_exit(void)
21 {
22 - i2c_isa_del_driver(&it87_isa_driver);
23 + if (isa_address)
24 + i2c_isa_del_driver(&it87_isa_driver);
25 i2c_del_driver(&it87_driver);
26 }
27

  ViewVC Help
Powered by ViewVC 1.1.20