2002-08-28 15:42:12

by Stephen C. Tweedie

[permalink] [raw]
Subject: [Patch 4/8] 2.4.20-pre4/ext3: Truncate leak fix

Fix from Al Viro for a very, very rare buffer leak on a truncate allocation
collision.

--- linux-ext3-2.4merge/fs/ext3/inode.c.=K0005=.orig Tue Aug 27 23:17:29 2002
+++ linux-ext3-2.4merge/fs/ext3/inode.c Tue Aug 27 23:19:57 2002
@@ -412,6 +412,7 @@
return NULL;

changed:
+ brelse(bh);
*err = -EAGAIN;
goto no_block;
failure: