Skip to contentSkip to conversation

oops in 2.6.14-rc3 (pcmcia i82365 patch)

DISCUSSION Igor Popik 1 participant 1 message Oct 8, 2005 Pcmcia

lore
Share & tools
lore

Igor Popik

author
#0 lore raw

2005/10/8, Sasa Ostrouska <[email protected]>:

Quoted 5 lines

Hi ppl,

After some playing with my new slackware 10.2 and
kernel 2.6.14-rc3 I noted this oops when shutting down the machine. Can somebody tell me why ?

This may be caused by bug in i83265 pcmcia module which seems not to have one release_region() call. It reserves region during init and does not release it when it fails to probe for the hardware.

That driver is loaded in rc.pcmcia script during boot and usually fails to load because You do not have such hardware (the script probes for different pcmcia drivers).

During shutdown one of the shutdown scripts greps through /proc/ioports file which causes an oops (reserverd region name points to unloaded driver).

Attached patch is my second attempt to fix this bug :-)

Cheers,
Igor

Signed-off-by Igor Popik <igor.popik at gmail.com>
drivers/pcmcia/i82365.c 2005-10-06 20:05:46.000000000 +0200 renamed from drivers/pcmcia/i82365.c 2005-10-06 20:30:52.000000000 +0200 +1 -0
@@ -1383,6 +1383,7 @@
        printk("not found.\n");
        platform_device_unregister(&i82365_device);
        driver_unregister(&i82365_driver);
+       release_region(i365_base, 2);
        return -ENODEV;
     }