mirror of
https://github.com/OpenAMP/libmetal.git
synced 2026-09-28 15:53:47 +08:00
In metal_sys_io_mem_map() if the I/O region size is a multiple of (1<<page_shift) will result in a buffer overflow in the for loop. Therefore, adjust loop termination condition to prevent accessing an out-of-bounds page. Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>