From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=qPaPkXRc0zCxmAgkF1b9VcDCwDtIccriLr5SdSCMzgY=; b=I3QbbJ3/GKQfbhoJR/0m+ot/VCquMEpz+YP9ZqC8V3pJWFpj8b/oYM0GcIC7JdX0Uz 55n7Cbz0sad3XP7HL8hy8Qc28CPbMBxlvViySwQ8A5c3RpPz/7MA6bSa3jkhtbgEQ6mS XcJc8+z3xcwhq2HtkDwnJCUSPuI8WWCTJQs7Au7VQBhQdjSM4PrGIaOTse5ZfKB30N5Z ByNiKjdGN+B9QKELf/afFb8sHxqHEmdauP7guzMoOyALCa2f5wAovWB6aPPHHrb9+7Bc UvyKahHDwC1LLVuDX+Nr4udLs1Ltsipp+l5ij2NMUO+Lr5e9aW5AyQc91u6ri3+yqwZG 2YDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=qPaPkXRc0zCxmAgkF1b9VcDCwDtIccriLr5SdSCMzgY=; b=UDtCJ3hvE/0wPACuNyxcooze9IRakKYIppETz0wnNFgUN7MIqWc4fF87D/zFPyiPLF ohlbliy9kuYtn7jn7lRIleXd/+FfDQ6WhVfeNgerQ6ZxKXDfHnhESy5t544ANWZwJ08v YxXLeH4uGJHgGSssKJr8o7WLYq1wwTp+ItKUfTaoXi/9iFlC5Afn3Pzrzi++anZzxisP AsNDg60tnenbPfuir08A+JmUSqvjsPeLZ9jlAxueg5lwRxBrsAnmkBqlo6Jpav1h8wku MUkFwUSFhKN0Tsxurro3de7WodH/Gpdt88p7M1HJo+9jdXcOVrfkC1RXw7rm9Ufir8t+ JG0Q== X-Gm-Message-State: AEkooutj7oSHMx4H5uTs26bzmA8LLWBwfeK7ub5ZktXec5dc2qF/DOF7fQ5nmLEaKIooOOdS X-Received: by 10.28.94.18 with SMTP id s18mr447713wmb.44.1469134998783; Thu, 21 Jul 2016 14:03:18 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id r67sm7187460wmb.14.2016.07.21.14.03.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jul 2016 14:03:18 -0700 (PDT) From: Thomas Monjalon To: Zoltan Kiss Cc: dev@dpdk.org, Olivier Matz Date: Thu, 21 Jul 2016 23:03:17 +0200 Message-ID: <2621420.1qV5Jp8sCz@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <5386abeb-0310-a12a-5550-ab6054e9a8e0@6wind.com> References: <1469034999-2732-2-git-send-email-zoltan.kiss@schaman.hu> <5386abeb-0310-a12a-5550-ab6054e9a8e0@6wind.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] memzone: allow full length name X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2016 21:03:19 -0000 > > (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