public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* pcmcia: fix 'driver ... did not release config properly' warning
@ 2010-06-17  2:47 Patrick McHardy
  2010-06-19 12:30 ` Dominik Brodowski
  0 siblings, 1 reply; 2+ messages in thread
From: Patrick McHardy @ 2010-06-17  2:47 UTC (permalink / raw)
  To: Dominik Brodowski; +Cc: Linux Kernel Mailing List

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: x --]
[-- Type: text/plain, Size: 1007 bytes --]

commit b1be4845dffefe212959ee02b783571eead3e350
Author: Patrick McHardy <kaber@trash.net>
Date:   Thu Jun 17 04:43:07 2010 +0200

    pcmcia: fix 'driver ... did not release config properly' warning
    
    Up to 2.6.34 pcmcia_release_irq() reset p_dev->_irq to 0 after releasing
    the irq. The IRQ is now released in pcmcia_disable_device(), however
    p_dev->_irq is not reset, triggering a warning in pcmcia_device_remove().
    
    Signed-off-by: Patrick McHardy <kaber@trash.net>

diff --git a/drivers/pcmcia/pcmcia_resource.c b/drivers/pcmcia/pcmcia_resource.c
index 29f91fa..a4cd9ad 100644
--- a/drivers/pcmcia/pcmcia_resource.c
+++ b/drivers/pcmcia/pcmcia_resource.c
@@ -857,8 +857,10 @@ void pcmcia_disable_device(struct pcmcia_device *p_dev)
 {
 	pcmcia_release_configuration(p_dev);
 	pcmcia_release_io(p_dev, &p_dev->io);
-	if (p_dev->_irq)
+	if (p_dev->_irq) {
 		free_irq(p_dev->irq, p_dev->priv);
+		p_dev->_irq = 0;
+	}
 	if (p_dev->win)
 		pcmcia_release_window(p_dev, p_dev->win);
 }

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: pcmcia: fix 'driver ... did not release config properly' warning
  2010-06-17  2:47 pcmcia: fix 'driver ... did not release config properly' warning Patrick McHardy
@ 2010-06-19 12:30 ` Dominik Brodowski
  0 siblings, 0 replies; 2+ messages in thread
From: Dominik Brodowski @ 2010-06-19 12:30 UTC (permalink / raw)
  To: Patrick McHardy; +Cc: Linux Kernel Mailing List

Applied, thanks.

Best,
	Doinik

On Thu, Jun 17, 2010 at 04:47:03AM +0200, Patrick McHardy wrote:
> 

> commit b1be4845dffefe212959ee02b783571eead3e350
> Author: Patrick McHardy <kaber@trash.net>
> Date:   Thu Jun 17 04:43:07 2010 +0200
> 
>     pcmcia: fix 'driver ... did not release config properly' warning
>     
>     Up to 2.6.34 pcmcia_release_irq() reset p_dev->_irq to 0 after releasing
>     the irq. The IRQ is now released in pcmcia_disable_device(), however
>     p_dev->_irq is not reset, triggering a warning in pcmcia_device_remove().
>     
>     Signed-off-by: Patrick McHardy <kaber@trash.net>
> 
> diff --git a/drivers/pcmcia/pcmcia_resource.c b/drivers/pcmcia/pcmcia_resource.c
> index 29f91fa..a4cd9ad 100644
> --- a/drivers/pcmcia/pcmcia_resource.c
> +++ b/drivers/pcmcia/pcmcia_resource.c
> @@ -857,8 +857,10 @@ void pcmcia_disable_device(struct pcmcia_device *p_dev)
>  {
>  	pcmcia_release_configuration(p_dev);
>  	pcmcia_release_io(p_dev, &p_dev->io);
> -	if (p_dev->_irq)
> +	if (p_dev->_irq) {
>  		free_irq(p_dev->irq, p_dev->priv);
> +		p_dev->_irq = 0;
> +	}
>  	if (p_dev->win)
>  		pcmcia_release_window(p_dev, p_dev->win);
>  }


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-06-19 12:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-17  2:47 pcmcia: fix 'driver ... did not release config properly' warning Patrick McHardy
2010-06-19 12:30 ` Dominik Brodowski

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