[PATCH 1/2] eal: fix mmap fail regarded as success

David Marchand david.marchand at redhat.com
Thu Feb 9 10:04:18 CET 2023


On Mon, Feb 6, 2023 at 11:59 AM Chengwen Feng <fengchengwen at huawei.com> wrote:
>
> The map_shared_memory() function should treat mmap MAP_FAILED as NULL
> because callers compare it with NULL to determine whether the map is
> failed.
>
> Fixes: 764bf26873b9 ("add FreeBSD support")
> Fixes: cb97d93e9d3b ("mem: share hugepage info primary and secondary")
> Cc: stable at dpdk.org
>
> Signed-off-by: Chengwen Feng <fengchengwen at huawei.com>

Reviewed-by: David Marchand <david.marchand at redhat.com>


-- 
David Marchand



More information about the dev mailing list