Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b897abec authored by Miao Xie's avatar Miao Xie Committed by Li Zefan
Browse files

Btrfs: Fix memory leak in writepage fixup work



fixup, which is allocated when starting page write to fix up the
extent without ORDERED bit set, should be freed after this work
is done.

Signed-off-by: default avatarMiao Xie <miaox@cn.fujitsu.com>
Signed-off-by: default avatarLi Zefan <lizf@cn.fujitsu.com>
parent d0f69686
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1544,6 +1544,7 @@ static void btrfs_writepage_fixup_worker(struct btrfs_work *work)
out_page:
out_page:
	unlock_page(page);
	unlock_page(page);
	page_cache_release(page);
	page_cache_release(page);
	kfree(fixup);
}
}


/*
/*