aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan <alan@lxorguk.ukuu.org.uk>2007-02-21 11:41:23 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-26 16:02:08 -0500
commiteafb4f184cd89e8af5676ec49ae35184172553fe (patch)
tree3ad7e2700079b87c9cf86ada4f7889d6bfb6b214
parent8cd0ae056a8d3528e4deb7ecc046304bb2d5a680 (diff)
[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>
-rw-r--r--drivers/ata/pata_pcmcia.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/ata/pata_pcmcia.c b/drivers/ata/pata_pcmcia.c
index 36468ec6454c..8928a6dfac50 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)
308 if (info->ndev) { 308 if (info->ndev) {
309 struct ata_host *host = dev_get_drvdata(dev); 309 struct ata_host *host = dev_get_drvdata(dev);
310 ata_host_detach(host); 310 ata_host_detach(host);
311 dev_set_drvdata(dev, NULL);
312 } 311 }
313 info->ndev = 0; 312 info->ndev = 0;
314 pdev->priv = NULL; 313 pdev->priv = NULL;