arm64: Fix leak issue when free DMA memory
In __free_from_pool() function the count calculation does not use
alligned page size so that the calculated page count is incorrect.
This results that the page bit will not be set to zero when free
that page which will cause the bitmap leak and makes DMA allocation
running out of bitmap.
Change-Id: Ic7f1b0b01ed13b7b53d3e3249f94dd0654a1260c
Signed-off-by:
Yue Ma <yuem@codeaurora.org>
Loading
Please register or sign in to comment