aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorYang Ruirui <ruirui.r.yang@tieto.com>2011-04-16 19:17:48 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-06-23 15:28:34 -0700
commit53e67347d909bfcc6801adafba8d2633f7d37153 (patch)
treec1eafa1cd5f6bbb2e5ea3895a50c28022e34eb56 /fs
parent46ee272bfb5eb7bdc7f950d770b698e37e4a15a1 (diff)
ext4: release page cache in ext4_mb_load_buddy error path
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/ext4/mballoc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index d34afad3e13..c63c5295444 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -1138,6 +1138,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)