commit | 13e1ea0881da64ea5d216f363fe08c44c37c65f0 | [log] [tgz] |
---|---|---|
author | Yue Hu <[email protected]> | Mon May 13 17:16:37 2019 -0700 |
committer | Greg Kroah-Hartman <[email protected]> | Sat Jun 15 11:54:01 2019 +0200 |
tree | 8318082de4b00be87981561463360018a7287b7c | |
parent | 38c5fce7fc488af2c3c6387a49f0c4ca02eecb8d [diff] |
mm/cma_debug.c: fix the break condition in cma_maxchunk_get() [ Upstream commit f0fd50504a54f5548eb666dc16ddf8394e44e4b7 ] If not find zero bit in find_next_zero_bit(), it will return the size parameter passed in, so the start bit should be compared with bitmap_maxno rather than cma->count. Although getting maxchunk is working fine due to zero value of order_per_bit currently, the operation will be stuck if order_per_bit is set as non-zero. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Yue Hu <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Joe Perches <[email protected]> Cc: David Rientjes <[email protected]> Cc: Dmitry Safonov <[email protected]> Cc: Joonsoo Kim <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]> Signed-off-by: Sasha Levin <[email protected]>