Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757054Ab3J2AoN (ORCPT ); Mon, 28 Oct 2013 20:44:13 -0400 Received: from lgeamrelo02.lge.com ([156.147.1.126]:64936 "EHLO LGEAMRELO02.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756874Ab3J2AoM (ORCPT ); Mon, 28 Oct 2013 20:44:12 -0400 X-AuditID: 9c93017e-b7ca6ae000000e8a-bb-526f04dac2a5 Date: Tue, 29 Oct 2013 09:44:14 +0900 From: Minchan Kim To: Rashika Kheria Cc: opw-kernel@googlegroups.com, Greg Kroah-Hartman , Jiang Liu , Nitin Gupta , Jerome Marchand , linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 2/3] Staging: zram: Fix variable dereferenced before check Message-ID: <20131029004414.GC17038@bbox> References: <01cafd6f9a98d41c243ae507ae731edc5cca045a.1382962788.git.rashika.kheria@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01cafd6f9a98d41c243ae507ae731edc5cca045a.1382962788.git.rashika.kheria@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Brightmail-Tracker: AAAAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 634 Lines: 16 On Mon, Oct 28, 2013 at 05:53:40PM +0530, Rashika Kheria wrote: > This patch fixes the following Smatch warning in zram_drv.c- > drivers/staging/zram/zram_drv.c:899 > destroy_device() warn: variable dereferenced before check 'zram->disk' (see line 896) > > Signed-off-by: Rashika Kheria Acked-by: Minchan Kim -- Kind regards, Minchan Kim -- 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/