libata: clear drvdata in ata_host_release(), take#2
authorTejun Heo <htejun@gmail.com>
Tue, 27 Feb 2007 13:33:21 +0000 (22:33 +0900)
committerJeff Garzik <jeff@garzik.org>
Fri, 2 Mar 2007 01:16:28 +0000 (20:16 -0500)
commit1aa56cca5bfa396c791e93b38e4776ef39b590a7
treec4e88e2195dfc1db88c932e5c2b9adb151bb9d65
parent7b965e0884cee430ffe5dc81cdb117b9316b0549
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>
drivers/ata/libata-core.c
drivers/ata/pata_cs5520.c
drivers/ata/pata_isapnp.c
drivers/ata/pata_platform.c