[dpdk-dev] [PATCH] memzone: allow full length name

2016-07-21 Thread Thomas Monjalon
> > (strlen(name) == sizeof(mz->name) - 1) is a valid case, change the > > condition to reflect that. > > Move it earlier to avoid lookup with invalid name. > > Change errno to ENAMETOOLONG. > > > > Fixes: 85cf0079 ("mem: avoid memzone/mempool/ring name truncation") > > > > Signed-off-by: Zoltan

[dpdk-dev] [PATCH] memzone: allow full length name

2016-07-21 Thread Olivier Matz
Hi, On 07/20/2016 07:16 PM, Zoltan Kiss wrote: > (strlen(name) == sizeof(mz->name) - 1) is a valid case, change the > condition to reflect that. > Move it earlier to avoid lookup with invalid name. > Change errno to ENAMETOOLONG. > > Fixes: 85cf0079 ("mem: avoid memzone/mempool/ring name truncati

[dpdk-dev] [PATCH] memzone: allow full length name

2016-07-20 Thread Zoltan Kiss
(strlen(name) == sizeof(mz->name) - 1) is a valid case, change the condition to reflect that. Move it earlier to avoid lookup with invalid name. Change errno to ENAMETOOLONG. Fixes: 85cf0079 ("mem: avoid memzone/mempool/ring name truncation") Signed-off-by: Zoltan Kiss --- lib/librte_eal/common