[PATCH] i82365 fix

Igor Popik igor.popik at gmail.com
Thu Oct 6 14:32:58 EDT 2005


Hi,

This driver does not release all the resources when the device is not
found. Which can cause an oops (as described in my previous post).

Cheers,
Igor

Signed-off-by: Igor Popik <igor.popik at gmail.com>

--- a/drivers/pcmcia/i82365.c   2005-10-06 20:30:52.000000000 +0200
+++ b/drivers/pcmcia/i82365.c   2005-10-06 20:05:46.000000000 +0200
@@ -1383,6 +1383,7 @@
        printk("not found.\n");
        platform_device_unregister(&i82365_device);
        driver_unregister(&i82365_driver);
+       release_region(i365_base, 2);
        return -ENODEV;
     }



More information about the linux-pcmcia mailing list