From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Garzik Subject: Re: [PATCH] libata: clear drvdata in ata_host_release() Date: Sat, 24 Feb 2007 20:51:27 -0500 Message-ID: <45E0EB9F.3050001@garzik.org> References: <20070224074823.GA20322@htj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from srv5.dvmed.net ([207.36.208.214]:58306 "EHLO mail.dvmed.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933618AbXBYBva (ORCPT ); Sat, 24 Feb 2007 20:51:30 -0500 In-Reply-To: <20070224074823.GA20322@htj.dyndns.org> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Tejun Heo Cc: Alan Cox , linux-ide@vger.kernel.org, Linux Kernel Mailing List , Komuro 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? Jeff