Re: [PATCH] libata: clear drvdata in ata_host_release(), take#2

Jeff Garzik
2007-03-02T01:16:51Z

Tejun Heo wrote:
> 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>
> ---
> pata_pcmcia is fixed by Alan's patch. This fixes other drivers and
> make libata always clear drvdata after detach.

applied