mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Fix memory leak when the ext3's journal file is corrupted
@ 2006-05-21 23:08 Theodore Ts'o
  2006-05-23 20:13 ` Willy TARREAU
  0 siblings, 1 reply; 2+ messages in thread
From: Theodore Ts'o @ 2006-05-21 23:08 UTC (permalink / raw)
  To: ext2-devel; +Cc: linux-kernel


Fix memory leak when the ext3's journal file is corrupted

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>

Index: linux-2.6/fs/jbd/recovery.c
===================================================================
--- linux-2.6.orig/fs/jbd/recovery.c	2006-05-21 18:39:27.000000000 -0400
+++ linux-2.6/fs/jbd/recovery.c	2006-05-21 18:39:34.000000000 -0400
@@ -531,6 +531,7 @@
 		default:
 			jbd_debug(3, "Unrecognised magic %d, end of scan.\n",
 				  blocktype);
+			brelse(bh);
 			goto done;
 		}
 	}

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-05-23 20:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-21 23:08 [PATCH] Fix memory leak when the ext3's journal file is corrupted Theodore Ts'o
2006-05-23 20:13 ` Willy TARREAU

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®