[dpdk-dev] [PATCH] memzone: Check socket_id value when creating memzone.
Thomas Monjalon
thomas at monjalon.net
Mon Jun 5 18:24:20 CEST 2017
12/05/2017 10:42, Bruce Richardson:
> On Thu, May 11, 2017 at 11:03:43PM -0700, Tonghao Zhang wrote:
> > 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 <nic at opencloud.tech>
>
> Looks a sensible thing to do.
>
> Acked-by: Bruce Richardson <bruce.richardson at intel.com>
Applied, thanks
More information about the dev
mailing list