diff options
author | Igor Popik <igor.popik@gmail.com> | 2005-10-06 14:32:58 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2005-11-10 05:42:16 -0500 |
commit | a2932b35a0efd01b20a3f598d19db052d64935f5 (patch) | |
tree | 3a9e19970797aeda2f860136f5f05ab45e2a05f4 /drivers | |
parent | e34631508861237e598e7d72703eae4478761f37 (diff) |
[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 <igor.popik@gmail.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
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 7ce455d01cc9..4ddd76239b34 100644 --- a/drivers/pcmcia/i82365.c +++ b/drivers/pcmcia/i82365.c | |||
@@ -1366,6 +1366,7 @@ static int __init init_i82365(void) | |||
1366 | if (sockets == 0) { | 1366 | if (sockets == 0) { |
1367 | printk("not found.\n"); | 1367 | printk("not found.\n"); |
1368 | platform_device_unregister(&i82365_device); | 1368 | platform_device_unregister(&i82365_device); |
1369 | release_region(i365_base, 2); | ||
1369 | driver_unregister(&i82365_driver); | 1370 | driver_unregister(&i82365_driver); |
1370 | return -ENODEV; | 1371 | return -ENODEV; |
1371 | } | 1372 | } |