[PATCH] Fix oops in pata_pcmcia
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 <alan@redhat.com> Acked-by: Jeff Garzik <jeff@garzik.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
@@ -308,7 +308,6 @@ static void pcmcia_remove_one(struct pcmcia_device *pdev)
|
|||||||
if (info->ndev) {
|
if (info->ndev) {
|
||||||
struct ata_host *host = dev_get_drvdata(dev);
|
struct ata_host *host = dev_get_drvdata(dev);
|
||||||
ata_host_detach(host);
|
ata_host_detach(host);
|
||||||
dev_set_drvdata(dev, NULL);
|
|
||||||
}
|
}
|
||||||
info->ndev = 0;
|
info->ndev = 0;
|
||||||
pdev->priv = NULL;
|
pdev->priv = NULL;
|
||||||
|
Reference in New Issue
Block a user