From: Alan Date: Wed, 21 Feb 2007 16:41:23 +0000 (+0000) Subject: pata_pcmcia: Fix oops in 2.6.21-rc1 X-Git-Tag: v2.6.21-rc2~25^2~5 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=cc70991d64e767729c37278cd4f80f709556079a;p=linux-2.6-omap-h63xx.git pata_pcmcia: Fix oops in 2.6.21-rc1 Manuel Lass reports: > This bug is also present in 2.6.21-rc1, and this patch > indeed fixes it. The change to the devres layer re-orders the execution of cleanup functions and in turn causes the pcmcia layer to oops as it zaps a pointer now needed later on. We simply leave the pointer alone. Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik --- diff --git a/drivers/ata/pata_pcmcia.c b/drivers/ata/pata_pcmcia.c index d10ae3e7224..4ef477c1203 100644 --- a/drivers/ata/pata_pcmcia.c +++ b/drivers/ata/pata_pcmcia.c @@ -308,7 +308,6 @@ static void pcmcia_remove_one(struct pcmcia_device *pdev) 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;