Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752531AbbGUGl3 (ORCPT ); Tue, 21 Jul 2015 02:41:29 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:35523 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752000AbbGUGl0 (ORCPT ); Tue, 21 Jul 2015 02:41:26 -0400 Date: Tue, 21 Jul 2015 12:11:18 +0530 From: Sudip Mukherjee To: Daniel Vetter , Jani Nikula , David Airlie , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [Intel-gfx] [PATCH v2] drm/i915: remove unnecessary null test Message-ID: <20150721064118.GE5598@sudip-PC> References: <1437404761-2617-1-git-send-email-sudipm.mukherjee@gmail.com> <20150720153350.GK16722@phenom.ffwll.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150720153350.GK16722@phenom.ffwll.local> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1104 Lines: 25 On Mon, Jul 20, 2015 at 05:33:50PM +0200, Daniel Vetter wrote: > On Mon, Jul 20, 2015 at 08:36:01PM +0530, Sudip Mukherjee wrote: > > While creating the debugfs file we are setting the inode->i_private to > > dev. That same dev is passed to these functions as private of struct > > seq_file via single_open(). So at this point it can never be NULL. > > > > Signed-off-by: Sudip Mukherjee > > --- > > > > v1 was drm/i915: fix possible null pointer dereference > > There's still one left in i915_displayport_test_active_write. I left it out intentionally as it was not used via single_open(). Will include that and send v3. >Also please mention the commit that introduced these and Cc: the author. > Also please Cc: Chris since he's commented on v1 of this patch. sure, Chris was Cc: in v2 and will Cc: him in v3 also. regards sudip -- 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/