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:
cdc57f8
)
ext4: release page cache in ext4_mb_load_buddy error path
author
Yang Ruirui
<ruirui.r.yang@tieto.com>
Sat, 16 Apr 2011 23:17:48 +0000
(19:17 -0400)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 23 Jun 2011 22:24:01 +0000
(15:24 -0700)
commit
26626f1172fb4f3f323239a6a5cf4e082643fa46
upstream.
Add missing page_cache_release in the error path of ext4_mb_load_buddy
Signed-off-by: Yang Ruirui <ruirui.r.yang@tieto.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext4/mballoc.c
patch
|
blob
|
history
diff --git
a/fs/ext4/mballoc.c
b/fs/ext4/mballoc.c
index 04e07e227278d0bc13b22fda9e5e9a04107e5b7b..42bac1bfe5c3d6b42f5b2b669dfa0372096e2f1f 100644
(file)
--- a/
fs/ext4/mballoc.c
+++ b/
fs/ext4/mballoc.c
@@
-1173,6
+1173,8
@@
repeat_load_buddy:
return 0;
err:
+ if (page)
+ page_cache_release(page);
if (e4b->bd_bitmap_page)
page_cache_release(e4b->bd_bitmap_page);
if (e4b->bd_buddy_page)