diff options
author | Tejun Heo <htejun@gmail.com> | 2007-02-27 14:33:21 +0100 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-03-02 02:16:28 +0100 |
commit | 1aa56cca5bfa396c791e93b38e4776ef39b590a7 (patch) | |
tree | c4e88e2195dfc1db88c932e5c2b9adb151bb9d65 /drivers/ata/pata_platform.c | |
parent | [PATCH] VM: invalidate_inode_pages2_range() should not exit early (diff) | |
download | linux-1aa56cca5bfa396c791e93b38e4776ef39b590a7.tar.xz linux-1aa56cca5bfa396c791e93b38e4776ef39b590a7.zip |
libata: clear drvdata in ata_host_release(), take#2
Clearing drvdata in ->remove_one causes NULL pointer deference. Clear
drvdata only in ata_host_release() after all resources are freed.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/pata_platform.c')
-rw-r--r-- | drivers/ata/pata_platform.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/ata/pata_platform.c b/drivers/ata/pata_platform.c index 02ea95fcba69..4b82a5435a4e 100644 --- a/drivers/ata/pata_platform.c +++ b/drivers/ata/pata_platform.c @@ -228,7 +228,6 @@ static int __devexit pata_platform_remove(struct platform_device *pdev) struct ata_host *host = dev_get_drvdata(dev); ata_host_detach(host); - dev_set_drvdata(dev, NULL); return 0; } |