public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: oops in 2.6.14-rc3 (pcmcia i82365 patch)
@ 2005-10-08 12:18 Igor Popik
  0 siblings, 0 replies; only message in thread
From: Igor Popik @ 2005-10-08 12:18 UTC (permalink / raw)
  To: sasa.ostrouska; +Cc: linux-kernel

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>

--- 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;
     }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-10-08 12:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-08 12:18 oops in 2.6.14-rc3 (pcmcia i82365 patch) Igor Popik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox