From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay1.corp.sgi.com [137.38.102.111]) by oss.sgi.com (Postfix) with ESMTP id E175F7F3F for ; Tue, 22 Oct 2013 15:39:55 -0500 (CDT) Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by relay1.corp.sgi.com (Postfix) with ESMTP id BE1548F804C for ; Tue, 22 Oct 2013 13:39:52 -0700 (PDT) Received: from ipmail07.adl2.internode.on.net (ipmail07.adl2.internode.on.net [150.101.137.131]) by cuda.sgi.com with ESMTP id mR4qyVcXymO1kJvq for ; Tue, 22 Oct 2013 13:39:50 -0700 (PDT) Date: Wed, 23 Oct 2013 07:39:46 +1100 From: Dave Chinner Subject: Re: [PATCH] xfs: fix possible NULL dereference Message-ID: <20131022203946.GB2797@dastard> References: <1382380366-26540-1-git-send-email-geyslan@gmail.com> <5265956F.4010700@sandeen.net> <20131021224459.GE16161@dastard> <5265B4D2.3000907@sandeen.net> <20131021231849.GL10553@sgi.com> <20131021235601.GG4446@dastard> <5265C03B.50701@sandeen.net> <20131022001732.GI4446@dastard> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: Geyslan =?iso-8859-1?Q?Greg=F3rio?= Bem Cc: Ben Myers , Alex Elder , Eric Sandeen , open list , XFS FILESYSTEM On Tue, Oct 22, 2013 at 08:12:51AM -0200, Geyslan Greg=F3rio Bem wrote: > 2013/10/21 Dave Chinner : > > On Mon, Oct 21, 2013 at 07:00:59PM -0500, Eric Sandeen wrote: > >> On 10/21/13 6:56 PM, Dave Chinner wrote: > >> > On Mon, Oct 21, 2013 at 06:18:49PM -0500, Ben Myers wrote: > > > > Yes, but to continue the Devil's Advocate argument, the purpose of > > debug code isn't to enlightent the casual reader or drive-by > > patchers - it's to make life easier for people who actually spend > > time debugging the code. And the people who need the debug code > > are expected to understand why an ASSERT is not necessary. :) > > > Dave, Eric and Ben, > = > This was catched by coverity (CID 102348). You should have put that in the patch description. Now I understand why there's been a sudden surge of irrelevant one line changes from random people that have never touched XFS before. Ok, lets churn the code just to shut the stupid checker up. This doesn't fix a bug, it doesn't change behaviour, it just makes coverity happy. Convert it to the for loop plus ASSERT I mentioned in a previous message. Cheers, Dave. -- = Dave Chinner david@fromorbit.com _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs