From: Yang Ruirui Date: Sat, 16 Apr 2011 23:17:48 +0000 (-0400) Subject: ext4: release page cache in ext4_mb_load_buddy error path X-Git-Tag: v2.6.39.1~116 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d9b389384c8805635af0955549cb10012b8c4d68;p=karo-tx-linux.git 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 Signed-off-by: "Theodore Ts'o" Signed-off-by: Greg Kroah-Hartman --- 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: 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)