mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
ext4: release page cache in ext4_mb_load_buddy error path
commit 26626f1172 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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
cdc57f82fe
commit
5252bdb10d
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user