From: Igor Popik Date: Thu, 6 Oct 2005 18:32:58 +0000 (+0200) Subject: [PCMCIA] i82365: release all resources if no devices are found X-Git-Tag: v2.6.15-rc1~50^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a2932b35a0efd01b20a3f598d19db052d64935f5;p=platform%2Fkernel%2Flinux-stable.git [PCMCIA] i82365: release all resources if no devices are found The i82365 driver does not release all the resources when the device is not found. This can cause an oops when reading /proc/ioports after module unload. Signed-off-by: Igor Popik Signed-off-by: Dominik Brodowski --- diff --git a/drivers/pcmcia/i82365.c b/drivers/pcmcia/i82365.c index 7ce455d..4ddd762 100644 --- a/drivers/pcmcia/i82365.c +++ b/drivers/pcmcia/i82365.c @@ -1366,6 +1366,7 @@ static int __init init_i82365(void) if (sockets == 0) { printk("not found.\n"); platform_device_unregister(&i82365_device); + release_region(i365_base, 2); driver_unregister(&i82365_driver); return -ENODEV; }