projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9446009
)
jbd2: Fix memory leak when verifying checksums in the journal
author
Theodore Ts'o
<tytso@mit.edu>
Mon, 26 May 2008 14:28:09 +0000
(10:28 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Mon, 26 May 2008 14:28:09 +0000
(10:28 -0400)
Cc: Andreas Dilger <adilger@clusterfs.com>
Cc: Girish Shilamkar <girish@clusterfs.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/jbd2/recovery.c
patch
|
blob
|
history
diff --git
a/fs/jbd2/recovery.c
b/fs/jbd2/recovery.c
index 5d0405a9e7ca081f1ce72cefd4d4b82c10c9b3fd..7199db52b2fdb5ab5a198a52e1ab7ac2194a2da3 100644
(file)
--- 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;
}