Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751347AbaLPJ2I (ORCPT ); Tue, 16 Dec 2014 04:28:08 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:51341 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750940AbaLPJ2F (ORCPT ); Tue, 16 Dec 2014 04:28:05 -0500 Date: Tue, 16 Dec 2014 12:27:17 +0300 From: Dan Carpenter To: Rickard Strandqvist Cc: Joe Perches , devel@driverdev.osuosl.org, Fabian Frederick , Andreas Dilger , Julia Lawall , James Simmons , Greg Kroah-Hartman , "linux-kernel@vger.kernel.org" , Oleg Drokin , Greg Donald , HPDD-discuss@ml01.01.org, Andriy Skulysh , "John L. Hammond" Subject: Re: [PATCH] staging: lustre: lustre: obdclass: lprocfs_status.c: Fix for possible null pointer dereference Message-ID: <20141216092717.GG4856@mwanda> References: <1418597547-25086-1-git-send-email-rickard_strandqvist@spectrumdigital.se> <1418608297.2674.4.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: ucsinet21.oracle.com [156.151.31.93] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 15, 2014 at 11:23:25PM +0100, Rickard Strandqvist wrote: > Hi Joe > > No, it does not look like end can be NULL then. > Then remove the end != NULL instead? > ... > if (end != NULL && *end == '.') { > Yes. Please do. regards, dan carpenter -- 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/