lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Sat, 19 Jun 2010 14:30:04 +0200
From:	Dominik Brodowski <linux@...inikbrodowski.net>
To:	Patrick McHardy <kaber@...sh.net>
Cc:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: pcmcia: fix 'driver ... did not release config properly'
 warning

Applied, thanks.

Best,
	Doinik

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

> commit b1be4845dffefe212959ee02b783571eead3e350
> Author: Patrick McHardy <kaber@...sh.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@...sh.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);
>  }

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ