Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261296AbVDMKlD (ORCPT ); Wed, 13 Apr 2005 06:41:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261299AbVDMKlD (ORCPT ); Wed, 13 Apr 2005 06:41:03 -0400 Received: from mail-in-06.arcor-online.net ([151.189.21.46]:53454 "EHLO mail-in-06.arcor-online.net") by vger.kernel.org with ESMTP id S261296AbVDMKk6 (ORCPT ); Wed, 13 Apr 2005 06:40:58 -0400 From: "Bodo Eggert " <7eggert@gmx.de> Subject: Re: [2.6 patch] sound/oss/rme96xx.c: fix two check after use To: Al Viro , Andrew Morton , linux-kernel@vger.kernel.org, Adrian Bunk Reply-To: 7eggert@gmx.de Date: Wed, 13 Apr 2005 12:40:38 +0200 References: <3SGgN-41r-1@gated-at.bofh.it> <3SGA8-4n3-9@gated-at.bofh.it> User-Agent: KNode/0.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Message-Id: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1254 Lines: 20 Al Viro wrote: > On Wed, Apr 13, 2005 at 04:17:42AM +0200, Adrian Bunk wrote: >> This patch fixes two check after use found by the Coverity checker. > > Bullshit. ->private_data is set by rme96xx_open() to guaranteed non-NULL > and never changed elsewhere. Same comment about reading the fscking > source, BUG_ON(), etc. If there are checks, they should be there for a purpose, and any sane reader will asume these checks to be nescensary. If they are dead code, you can say that, but please don't flame Adrian for fixing obviously buggy code in a way that is sane and at least more correct than the original without using several days of his lifetime to analyze the whole driver. Instead, you could provide the correct fix. -- Funny quotes: 33. If lawyers are disbarred and clergymen defrocked, doesn't it follow that electricians can be delighted, musicians denoted, cowboys deranged, models deposed, tree surgeons debarked, and dry cleaners depressed? - 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/