From: Tonghao Zhang Date: Fri, 12 May 2017 06:03:43 +0000 (-0700) Subject: memzone: check NUMA id when reserving a zone X-Git-Tag: spdx-start~3189 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5cf3814d9bc7a7e6c4aeadbe446f0a8cfbf9244b;hp=5cf3814d9bc7a7e6c4aeadbe446f0a8cfbf9244b;p=dpdk.git memzone: check NUMA id when reserving a zone If the socket_id is invalid (e.g. -2, -3), the memzone_reserve_aligned_thread_unsafe should return the EINVAL and not ENOMEM. To avoid it, we should check the socket_id before calling malloc_heap_alloc. Signed-off-by: Tonghao Zhang Acked-by: Bruce Richardson ---