* [PATCH] ext4: Fix memory leak when verifying checksums in the journal
@ 2008-05-24 2:48 Theodore Ts'o
0 siblings, 0 replies; only message in thread
From: Theodore Ts'o @ 2008-05-24 2:48 UTC (permalink / raw)
To: linux-ext4; +Cc: Theodore Ts'o
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
---
fs/jbd2/recovery.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/fs/jbd2/recovery.c b/fs/jbd2/recovery.c
index 5d0405a..7199db5 100644
--- a/fs/jbd2/recovery.c
+++ b/fs/jbd2/recovery.c
@@ -344,6 +344,7 @@ static int calc_chksums(journal_t *journal, struct buffer_head *bh,
*crc32_sum = crc32_be(*crc32_sum, (void *)obh->b_data,
obh->b_size);
}
+ put_bh(obh);
}
return 0;
}
--
1.5.4.1.144.gdfee-dirty
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-05-24 12:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-24 2:48 [PATCH] ext4: Fix memory leak when verifying checksums in the journal Theodore Ts'o
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).