From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Bottomley Subject: RE: [patch] [SCSI] scsi_dh: potential null dereference in scsi_dh_activate() Date: Tue, 04 Jan 2011 10:24:39 -0600 Message-ID: <1294158279.4726.17.camel@mulgrave.site> References: <20110103054833.GT1886@bicker> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from cantor2.suse.de ([195.135.220.15]:55467 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750947Ab1ADQYp (ORCPT ); Tue, 4 Jan 2011 11:24:45 -0500 In-Reply-To: Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: "Moger, Babu" Cc: Dan Carpenter , Mike Snitzer , Menny Hamburger , "linux-scsi@vger.kernel.org" , "kernel-janitors@vger.kernel.org" On Tue, 2011-01-04 at 09:13 -0700, Moger, Babu wrote: > Looks good to me. It does? The first check is the bogus one, surely. The queue is created and destroyed by scsi_alloc_sdev(), so queuedata can never be NULL for a SCSI queue. There's no check anywhere in the rest of SCSI, so there shouldn't be one here, should there? James