Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751701Ab3DNI0V (ORCPT ); Sun, 14 Apr 2013 04:26:21 -0400 Received: from merlin.infradead.org ([205.233.59.134]:48152 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751564Ab3DNI0J (ORCPT ); Sun, 14 Apr 2013 04:26:09 -0400 Date: Sun, 14 Apr 2013 10:25:39 +0200 From: Jens Axboe To: Asai Thambi S P Cc: "linux-kernel@vger.kernel.org" , Sam Bradshaw , Dan Carpenter Subject: Re: [PATCH 1/2] mtip32xx: fix a smatch warning Message-ID: <20130414082539.GF12244@kernel.dk> References: <51685205.5080806@micron.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51685205.5080806@micron.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 620 Lines: 18 On Fri, Apr 12 2013, Asai Thambi S P wrote: > > Reported smatch warning: > drivers/block/mtip32xx/mtip32xx.c:4163 mtip_block_shutdown() warn: variable dereferenced before check 'dd->disk' (see line 4159) > > dd->disk->disk_name accessed before the check if dd->disk is NULL. Fixed this > and access of dd->queue/dd->disk->queue. Applied for 3.10, thanks. -- Jens Axboe -- 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/