diff options
author | Igor Popik <igor.popik@gmail.com> | 2005-12-07 08:46:33 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-12-14 15:42:58 -0800 |
commit | 28e52c66f8fa3d112036b5539d80eaf90a9693b6 (patch) | |
tree | fbbb1d7e2a9f677bf7ee876a8dfc60b0ea01bab9 /drivers | |
parent | ab2d3d363b5160fe62c701914331d470ea1e1179 (diff) |
[PATCH] 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 (e.g. bug #5657).
Signed-off-by: Igor Popik <igor.popik@gmail.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pcmcia/i82365.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pcmcia/i82365.c b/drivers/pcmcia/i82365.c index a713015e822..7d9898f7e82 100644 --- a/drivers/pcmcia/i82365.c +++ b/drivers/pcmcia/i82365.c @@ -1382,6 +1382,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; } |