diff options
author | Yang Ruirui <ruirui.r.yang@tieto.com> | 2011-04-16 19:17:48 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-04-16 19:17:48 -0400 |
commit | 26626f1172fb4f3f323239a6a5cf4e082643fa46 (patch) | |
tree | a1b11f012bd0807b771651c73b701475a8309bee /fs/ext4 | |
parent | a6360dd37e1a144ed11e6548371bade559a1e4df (diff) |
ext4: release page cache in ext4_mb_load_buddy error path
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>
Cc: stable@kernel.org
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/mballoc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index d8a16eecf1d5..15bfa44abd29 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c | |||
@@ -1273,6 +1273,8 @@ repeat_load_buddy: | |||
1273 | return 0; | 1273 | return 0; |
1274 | 1274 | ||
1275 | err: | 1275 | err: |
1276 | if (page) | ||
1277 | page_cache_release(page); | ||
1276 | if (e4b->bd_bitmap_page) | 1278 | if (e4b->bd_bitmap_page) |
1277 | page_cache_release(e4b->bd_bitmap_page); | 1279 | page_cache_release(e4b->bd_bitmap_page); |
1278 | if (e4b->bd_buddy_page) | 1280 | if (e4b->bd_buddy_page) |