Re: [PATCH v2 1/8] memblock tests: update tests to check if memblock_alloc zeroed memory

From: David Hildenbrand
Date: Tue Aug 23 2022 - 08:08:36 EST


On 19.08.22 10:34, Rebecca Mckeever wrote:
> Add an assert in memblock_alloc() tests where allocation is expected to
> occur. The assert checks whether the entire chunk of allocated memory is
> cleared.
>
> The current memblock_alloc() tests do not check whether the allocated
> memory was zeroed. memblock_alloc() should zero the allocated memory since
> it is a wrapper for memblock_alloc_try_nid().
>
> Reviewed-by: Shaoqin Huang <shaoqin.huang@xxxxxxxxx>
> Signed-off-by: Rebecca Mckeever <remckee0@xxxxxxxxx>

Reviewed-by: David Hildenbrand <david@xxxxxxxxxx>


--
Thanks,

David / dhildenb