/[linux-patches]/genpatches-2.6/trunk/2.6.14/1148_4_i82365-resources.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.14/1148_4_i82365-resources.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 292 - (show annotations) (download) (as text)
Tue Jan 31 21:50:53 2006 UTC (14 years, 10 months ago) by johnm
File MIME type: text/x-diff
File size: 1114 byte(s)
Large update - thanks goes to Kerin Millar for the legwork.
1 From stable-bounces@linux.kernel.org Tue Dec 6 23:50:21 2005
2 Date: Wed, 7 Dec 2005 08:46:33 +0100
3 From: Dominik Brodowski <linux@dominikbrodowski.net>
4 To: stable@kernel.org
5 Message-ID: <20051207074633.GA26768@dominikbrodowski.de>
6 Content-Disposition: inline
7 Cc:
8 Subject: i82365: release all resources if no devices are found
9
10 From: Igor Popik <igor.popik@gmail.com>
11
12 The i82365 driver does not release all the resources when the device is not
13 found. This can cause an oops when reading /proc/ioports after module
14 unload (e.g. bug #5657).
15
16 Signed-off-by: Igor Popik <igor.popik@gmail.com>
17 Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
18 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
19 ---
20 drivers/pcmcia/i82365.c | 1 +
21 1 file changed, 1 insertion(+)
22
23 --- linux-2.6.14.3.orig/drivers/pcmcia/i82365.c
24 +++ linux-2.6.14.3/drivers/pcmcia/i82365.c
25 @@ -1382,6 +1382,7 @@ static int __init init_i82365(void)
26 if (sockets == 0) {
27 printk("not found.\n");
28 platform_device_unregister(&i82365_device);
29 + release_region(i365_base, 2);
30 driver_unregister(&i82365_driver);
31 return -ENODEV;
32 }

  ViewVC Help
Powered by ViewVC 1.1.20