diff options
author | Alan <alan@lxorguk.ukuu.org.uk> | 2007-02-21 16:41:23 +0000 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-26 13:02:08 -0800 |
commit | eafb4f184cd89e8af5676ec49ae35184172553fe (patch) | |
tree | 3ad7e2700079b87c9cf86ada4f7889d6bfb6b214 | |
parent | 8cd0ae056a8d3528e4deb7ecc046304bb2d5a680 (diff) | |
download | op-kernel-dev-eafb4f184cd89e8af5676ec49ae35184172553fe.zip op-kernel-dev-eafb4f184cd89e8af5676ec49ae35184172553fe.tar.gz |
[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.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/ata/pata_pcmcia.c b/drivers/ata/pata_pcmcia.c index 36468ec..8928a6d 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; |