Re: oops in 2.6.14-rc3 (pcmcia i82365 patch)

From: Igor Popik
Date: Sat Oct 08 2005 - 07:24:18 EST


2005/10/8, Sasa Ostrouska <sasa.ostrouska@xxxxxxxxx>:
> 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>

--- 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/