lkml.org 
[lkml]   [2005]   [Oct]   [8]   [last100]   RSS-feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Complete thread (EXPERIMENTAL)
Patch in this message
/
DateSat, 8 Oct 2005 14:18:20 +0200
FromIgor Popik <>
SubjectRe: oops in 2.6.14-rc3 (pcmcia i82365 patch)
Digg This
2005/10/8, Sasa Ostrouska <sasa.ostrouska@volja.net>:
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>

[view this diff only]
--- 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;
     }
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
ISP Services
Valid XHTML 1.0!\ /
Valid CSS! Last update: 2005-10-08 12:23    [W:21.929 / U:0.000 seconds]
©2003-2005 Jasper Spaans