From MAILER-DAEMON Tue Sep 23 08:36:48 2003 Date: 23 Sep 2003 08:36:48 +0000 From: Mail System Internal Data Subject: DON'T DELETE THIS MESSAGE -- FOLDER INTERNAL DATA X-IMAP: 1064306208 0000000000 Status: RO This text is part of the internal format of your mail folder, and is not a real message. It is created automatically by the mail system software. If deleted, important folder data will be lost, and it will be re-created with the data reset to initial values. From cieciwa@alpha.zarz.agh.edu.pl Tue Sep 23 00:47:22 2003 +0000 Status: R X-Status: X-Keywords: Return-Path: X-Original-To: cieciwa@alpha.zarz.agh.edu.pl Delivered-To: cieciwa@alpha.zarz.agh.edu.pl Received: from galaxy.uci.agh.edu.pl (galaxy.uci.agh.edu.pl [149.156.96.9]) by alpha.zarz.agh.edu.pl (Postfix) with ESMTP id D1686241A5 for ; Tue, 23 Sep 2003 00:47:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [67.72.78.212]) by galaxy.uci.agh.edu.pl (Postfix) with ESMTP id A3C08AF49E for ; Tue, 23 Sep 2003 00:59:47 +0200 (CEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261758AbTIVW4M (ORCPT ); Mon, 22 Sep 2003 18:56:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261808AbTIVW4M (ORCPT ); Mon, 22 Sep 2003 18:56:12 -0400 Received: from fw.osdl.org ([65.172.181.6]:10978 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S261758AbTIVWzk (ORCPT ); Mon, 22 Sep 2003 18:55:40 -0400 Received: (from chrisw@localhost) by mail.osdl.org (8.11.6/8.11.6) id h8MMsuj13008; Mon, 22 Sep 2003 15:54:56 -0700 Date: Mon, 22 Sep 2003 15:54:56 -0700 From: Chris Wright To: David Yu Chen Cc: linux-kernel@vger.kernel.org, mc@cs.stanford.edu, James.Bottomley@steeleye.com Subject: Re: [CHECKER] 32 Memory Leaks on Error Paths Message-ID: <20030922155456.E18606@osdlab.pdx.osdl.net> References: <200309160435.h8G4ZkQM009953@elaine4.Stanford.EDU> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200309160435.h8G4ZkQM009953@elaine4.Stanford.EDU>; from dychen@stanford.edu on Mon, Sep 15, 2003 at 09:35:46PM -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org * David Yu Chen (dychen@stanford.edu) wrote: > [FILE: 2.6.0-test5/drivers/scsi/NCR_Q720.c] > START --> > 153: p = kmalloc(sizeof(*p), GFP_KERNEL); > 154: if (!p) > 155: return -ENOMEM; > 180: if(i != NCR_Q720_MCA_ID) { > 181: printk(KERN_ERR "NCR_Q720, adapter failed to I/O map registers correctly at 0x%x(0x%x)\n", io_base, i); > END --> > 182: return -ENODEV; Yes, looks like a valid bug. Patch below. James, look ok? thanks, -chris ===== drivers/scsi/NCR_Q720.c 1.4 vs edited ===== --- 1.4/drivers/scsi/NCR_Q720.c Sun Aug 17 13:10:45 2003 +++ edited/drivers/scsi/NCR_Q720.c Mon Sep 22 15:05:02 2003 @@ -179,7 +179,7 @@ i = inb(io_base) | (inb(io_base+1)<<8); if(i != NCR_Q720_MCA_ID) { printk(KERN_ERR "NCR_Q720, adapter failed to I/O map registers correctly at 0x%x(0x%x)\n", io_base, i); - return -ENODEV; + goto out_free; } /* Phase II, find the ram base and memory map the board register */ - 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/