Re: [PATCH v2 08/11] malloc: check result of rte_mem_virt2memseg

2022-11-22 Thread Dmitry Kozlyuk
2022-11-21 17:32 (UTC-0500), ok...@kernel.org: > From: Sinan Kaya > > In malloc_elem_find_max_iova_contig result of call to rte_mem_virt2memseg > is dereferenced here and may be null. > > Signed-off-by: Sinan Kaya > --- > lib/eal/common/malloc_elem.c | 11 --- > lib/eal/common/malloc_h

[PATCH v2 08/11] malloc: check result of rte_mem_virt2memseg

2022-11-21 Thread okaya
From: Sinan Kaya In malloc_elem_find_max_iova_contig result of call to rte_mem_virt2memseg is dereferenced here and may be null. Signed-off-by: Sinan Kaya --- lib/eal/common/malloc_elem.c | 11 --- lib/eal/common/malloc_heap.c | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-)