Thread (6 messages) 6 messages, 3 authors, 2007-03-02

Re: [PATCH] libata: clear drvdata in ata_host_release()

From: Alan <hidden>
Date: 2007-02-25 12:25:15
Also in: lkml

On Sat, 24 Feb 2007 20:51:27 -0500
Jeff Garzik [off-list ref] wrote:
Tejun Heo wrote:
quoted
ata_host_release() uses drvdata to determine ata_host to release and
clearing drvdata in ->remove_one causes NULL pointer deference.  Clear
drvdata only in ata_host_release() after all resources are freed.

This bug was first analyzed by Alan Cox for pata_pcmcia.

Signed-off-by: Tejun Heo <redacted>
Cc: Alan Cox <redacted>
---
Alan, this is the bug you talked about, right?  I took the fix from
"[BUG] PATA_PCMCIA does not work" and expanded it.  If this isn't the
one, please let me know.  Thanks.
Has a tester confirmed that this patch fixes the problem, and supercedes 
Alan's patch?
It doesn't appear to, instead it fixes further cases.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help