From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] memzone: allow full length name Date: Thu, 21 Jul 2016 23:03:17 +0200 Message-ID: <2621420.1qV5Jp8sCz@xps13> References: <1469034999-2732-2-git-send-email-zoltan.kiss@schaman.hu> <5386abeb-0310-a12a-5550-ab6054e9a8e0@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Olivier Matz To: Zoltan Kiss Return-path: Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by dpdk.org (Postfix) with ESMTP id F2E3C3237 for ; Thu, 21 Jul 2016 23:03:18 +0200 (CEST) Received: by mail-wm0-f43.google.com with SMTP id o80so40432362wme.1 for ; Thu, 21 Jul 2016 14:03:18 -0700 (PDT) In-Reply-To: <5386abeb-0310-a12a-5550-ab6054e9a8e0@6wind.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > > (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 > > Acked-by: Olivier Matz Applied, thanks