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

From: Stephen Tweedie (sct@redhat.com)
Date: Wed Aug 28 2002 - 10:45:19 EST


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:
-
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/



This archive was generated by hypermail 2b29 : Sat Aug 31 2002 - 22:00:23 EST