lkml.org 
[lkml]   [2003]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[2.4] ufs memleak
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/
\
 
 \ /
  Last update: 2005-03-22 13:33    [W:0.081 / U:1.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site