From linux-kernel-owner+willy=40w.ods.org@vger.kernel.org  Sun Mar  9 18:39:43 2003
Return-Path: <linux-kernel-owner+willy=40w.ods.org@vger.kernel.org>
Received: from vax.home.local (vax [10.2.1.2])
	by alpha.home.local (8.12.4/8.12.1) with ESMTP id h29HdhN1002540
	for <willy@w.ods.org>; Sun, 9 Mar 2003 18:39:43 +0100
Received: from vger.kernel.org (vger.kernel.org [209.116.70.75])
	by vax.home.local (8.12.2/8.12.1) with ESMTP id h29Hde1P032378
	for <willy@w.ods.org>; Sun, 9 Mar 2003 18:39:41 +0100 (CET)
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id <S262550AbTCIRYv>; Sun, 9 Mar 2003 12:24:51 -0500
Received: (majordomo@vger.kernel.org) by vger.kernel.org
	id <S262551AbTCIRYv>; Sun, 9 Mar 2003 12:24:51 -0500
Received: from home.linuxhacker.ru ([194.67.236.68]:9111 "EHLO linuxhacker.ru")
	by vger.kernel.org with ESMTP id <S262550AbTCIRYu>;
	Sun, 9 Mar 2003 12:24:50 -0500
Received: from car.linuxhacker.ru (localhost.localdomain [127.0.0.1])
	by linuxhacker.ru (8.12.7/8.12.5) with ESMTP id h29HYYaZ027716;
	Sun, 9 Mar 2003 20:34:34 +0300
Received: (from green@localhost)
	by car.linuxhacker.ru (8.12.7/8.12.7/Submit) id h29HYXq9027714;
	Sun, 9 Mar 2003 20:34:33 +0300
Date: 	Sun, 9 Mar 2003 20:34:33 +0300
From: Oleg Drokin <green@linuxhacker.ru>
To: alan@redhat.com, linux-kernel@vger.kernel.org
Cc: daniel.pirkl@email.cz
Subject: [2.4] ufs memleak
Message-ID: <20030309173433.GA27217@linuxhacker.ru>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.4i
Sender: linux-kernel-owner@vger.kernel.org
Precedence: bulk
X-Mailing-List: 	linux-kernel@vger.kernel.org
Content-Length: 638
Lines: 23
Status: RO

Hello!

   Seems there is ufs memleak in 2.4 code. See the patch attached.
   Found with help of smatch + enchanced unfree script.

Bye,
    Oleg
===== fs/ufs/util.c 1.5 vs edited =====
--- 1.5/fs/ufs/util.c	Tue Feb  5 17:10:25 2002
+++ edited/fs/ufs/util.c	Sun Mar  9 17:55:48 2003
@@ -47,6 +47,7 @@
 failed:
 	for (j = 0; j < i; j++)
 		brelse (ubh->bh[j]);
+	kfree(ubh);
 	return NULL;
 }
 
-
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/

