|
Description
|
memlist_find() needs to calculate the required chunk size according to the chunk address alignment. Otherwise, it will fail to find a satisfied chunk. For example, if there is a memory chunk with address = 0x3000, size = 0x1000 on the list. If we call memlist_find(list, 0x1000, 0x1000) to find a size of 0x1000 and with 0x1000 alignment chunk, the required chunk size calculated in memlist_find() will be 0x1fff which is larger than the existing chunk size 0x1000. So memlist_find() will return failure instead of retuning the satisfied chunk address of 0x3000.
|