lkml.org 
[lkml]   [2007]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] libata: clear drvdata in ata_host_release()
Tejun Heo wrote:
> 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 <htejun@gmail.com>
> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
> ---
> 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?

Jeff


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-02-25 02:53    [W:0.060 / U:0.372 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site