LKML Archive on
help / color / mirror / Atom feed
From: Jeff Garzik <>
To: Tejun Heo <>
Cc: Alan Cox <>,,
	Linux Kernel Mailing List <>,
	Komuro <>
Subject: Re: [PATCH] libata: clear drvdata in ata_host_release()
Date: Sat, 24 Feb 2007 20:51:27 -0500	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

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 <>
> Cc: Alan Cox <>
> ---
> 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?


       reply	other threads:[~2007-02-25  1:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <>
2007-02-25  1:51 ` Jeff Garzik [this message]
2007-02-25 13:28   ` Alan
2007-02-27 13:33   ` [PATCH] libata: clear drvdata in ata_host_release(), take#2 Tejun Heo
2007-03-02  1:16     ` Jeff Garzik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \
    --subject='Re: [PATCH] libata: clear drvdata in ata_host_release()' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).