]> git.droids-corp.org - dpdk.git/commit
mem: check allocation in dynamic hugepage init
authorYunjian Wang <wangyunjian@huawei.com>
Tue, 14 Dec 2021 13:30:25 +0000 (21:30 +0800)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 11 Feb 2022 07:46:21 +0000 (08:46 +0100)
commit5f69ebbd85300a197bbe9e6a630642352f5aba39
tree8900507ffe3af952157a7119917bc13d9e46050e
parent264ff3f250d51c99084495bea3ca329d2c995b79
mem: check allocation in dynamic hugepage init

The function malloc() could return NULL, the return value
need to be checked.

Fixes: 6f63858e55e6 ("mem: prevent preallocated pages from being freed")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
lib/eal/common/eal_common_dynmem.c