Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 6 Mar 2003 09:10:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 6 Mar 2003 09:10:16 -0500 Received: from comtv.ru ([217.10.32.4]:56459 "EHLO comtv.ru") by vger.kernel.org with ESMTP id ; Thu, 6 Mar 2003 09:10:14 -0500 To: linux-kernel@vger.kernel.org Cc: dan carpenter , Andrew Morton , ext2-devel@lists.sourceforge.net Subject: [PATCH] minor memleak in ext3 (catched by smatch) From: Alex Tomas Organization: HOME Date: 06 Mar 2003 17:14:15 +0300 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 661 Lines: 17 This minor memory leak has been catched by smatch. Thanks to Dan Carpenter! --- linux/fs/ext3/super.c Mon Feb 24 17:47:45 2003 +++ super.c Thu Mar 6 17:09:31 2003 @@ -1154,7 +1154,7 @@ if (!bh) { printk(KERN_ERR "EXT3-fs: Can't read superblock on 2nd try.\n"); - return -EINVAL; + goto out_fail; } es = (struct ext3_super_block *)(((char *)bh->b_data) + offset); sbi->s_es = es; - 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/