| To: | Geyslan Gregório Bem <geyslan@xxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] xfs: fix possible NULL dereference |
| From: | Dave Chinner <david@xxxxxxxxxxxxx> |
| Date: | Wed, 23 Oct 2013 07:39:46 +1100 |
| Cc: | Eric Sandeen <sandeen@xxxxxxxxxxx>, Ben Myers <bpm@xxxxxxx>, Alex Elder <elder@xxxxxxxxxx>, open list <linux-kernel@xxxxxxxxxxxxxxx>, XFS FILESYSTEM <xfs@xxxxxxxxxxx> |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <CAGG-pUTh-PJJ4Nzo0r-f3VDPMc81U2z_NMX+Wcex3KzGs=U8cA@xxxxxxxxxxxxxx> |
| References: | <1382380366-26540-1-git-send-email-geyslan@xxxxxxxxx> <5265956F.4010700@xxxxxxxxxxx> <20131021224459.GE16161@dastard> <5265B4D2.3000907@xxxxxxxxxxx> <20131021231849.GL10553@xxxxxxx> <20131021235601.GG4446@dastard> <5265C03B.50701@xxxxxxxxxxx> <20131022001732.GI4446@dastard> <CAGG-pUTh-PJJ4Nzo0r-f3VDPMc81U2z_NMX+Wcex3KzGs=U8cA@xxxxxxxxxxxxxx> |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
On Tue, Oct 22, 2013 at 08:12:51AM -0200, Geyslan Gregório Bem wrote: > 2013/10/21 Dave Chinner <david@xxxxxxxxxxxxx>: > > 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. <sigh> 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@xxxxxxxxxxxxx |
| Previous by Date: | Re: [PATCH] xfs:xfs_dir2_node.c: pointer use before check for null, Dave Chinner |
|---|---|
| Next by Date: | Re: [PATCH] xfs: fix possible NULL dereference, Eric Sandeen |
| Previous by Thread: | Re: [PATCH] xfs: fix possible NULL dereference, Geyslan GregÃrio Bem |
| Next by Thread: | Re: [PATCH] xfs: fix possible NULL dereference, Eric Sandeen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |