Re: [BUG] PATA_PCMCIA does not work

Manuel Lauss
2007-02-21T15:24:52Z

On Wed, Feb 21, 2007 at 03:37:29PM +0000, Alan wrote:
> Does this fix the oops ?
>
> Alan
>
>
> diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.20-mm2/drivers/ata/pata_pcmcia.c linux-2.6.20-mm2/drivers/ata/pata_pcmcia.c
> --- linux.vanilla-2.6.20-mm2/drivers/ata/pata_pcmcia.c 2007-02-20 13:37:58.000000000 +0000
> +++ linux-2.6.20-mm2/drivers/ata/pata_pcmcia.c 2007-02-21 14:06:58.792707976 +0000
> @@ -308,7 +342,6 @@
> if (info->ndev) {
> struct ata_host *host = dev_get_drvdata(dev);
> ata_host_detach(host);
> - dev_set_drvdata(dev, NULL);
> }
> info->ndev = 0;
> pdev->priv = NULL;

This bug is also present in 2.6.21-rc1, and this patch
indeed fixes it.

Thanks,

--
ml.