From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrian Bunk Subject: Re: [patch] drivers/scsi/dpt_i2o.c: fix a NULL pointer dereference Date: Sun, 27 Nov 2005 19:52:52 +0100 Message-ID: <20051127185252.GG3988@stusta.de> References: <20051126233637.GC3988@stusta.de> <20051127124738.GC13581@logos.cnet> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20051127124738.GC13581@logos.cnet> Sender: linux-kernel-owner@vger.kernel.org To: Marcelo Tosatti Cc: Linus Torvalds , Andrew Morton , markus.lidel@shadowconnect.com, James.Bottomley@SteelEye.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Salyzyn List-Id: linux-scsi@vger.kernel.org On Sun, Nov 27, 2005 at 10:47:38AM -0200, Marcelo Tosatti wrote: > On Sun, Nov 27, 2005 at 12:36:37AM +0100, Adrian Bunk wrote: > > The Coverity checker spotted this obvious NULL pointer dereference. > > Hi Adrian, Hi Marcelo, > Could you explain why you remove the adpt_post_wait_lock acquision? > > And if it does not belong there, why don't you remove it instead of > commeting out? >... my patch does remove the following not required line: > > - p2 = NULL; It does not touch the following line that was already commented out: > > // spin_lock_irqsave(&adpt_post_wait_lock, flags); >... cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed