Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
genalloc: fix allocation from end of pool
bitmap_find_next_zero_area requires the size of the bitmap, we instead passed the last suitable position. This made it impossible to allocate from the end of the pool. Fixes a regression introduced by 243797f ("genalloc: use bitmap_find_next_zero_area"). Signed-off-by: Imre Deak <[email protected]> Cc: Zygo Blaxell <[email protected]> Cc: Tejun Heo <[email protected]> Acked-by: Akinobu Mita <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information