From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 97F9F9A02 for ; Mon, 31 Jul 2017 22:47:34 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 0CD3E20B4E; Mon, 31 Jul 2017 16:47:33 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Mon, 31 Jul 2017 16:47:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=1JqlmxlSdi4YRz2 L8Fun3VWroKTXPi03yEXvD3jhV30=; b=NmSdL54O4CKd/LWc5xPDq5ukQz9cQ9U E5mo6+7kBNYlEeukNbIbWGsIbOLM2GP3CjtkReu4RjRAqJb/L3ZVJZzBCUlEQp4u VwhdkkRpP+Ah12l/cs85jzjER5GSo20KA9RV2UrRgFvnz2HnGpoHs25X8p7WMWGD rZnrbRF9salE= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=1JqlmxlSdi4YRz2L8Fun3VWroKTXPi03yEXvD3jhV30=; b=kZrR6u+Q rU5vqJMZrHnkgErtq5PV7WqaviZsF0rM57KLfB2c3UwOhOgLO55vXP/PkmYm4rTQ 5wWZah0xMcUkEi+7f9Rznp7EDY2l6E7LVxuyLy6uj8HJa7dBP17lHXGF7QBUODcA jyji/H6Kb8FDwOU1vKhIPdGR7OlHUnjoKnS1s4DWWw/VxH1dA9Ilu7vuIS7TZm8a at/GqpsQSguVLlYdfSQQJD3guidijcANE4/91HthFS6z2DEOmxKJjWgFV5J/gX8/ pOxLmy4pSL2XfUVt+yxfMbWMrzqKHJO4xPRBCiFafW70yKiHPNsCPkuB51WxdfEz LTcc016ADdXXkg== X-ME-Sender: X-Sasl-enc: FbUYctdDdoWC8W6Z3szOfXiSCElA3dp9WDahN+VcjPxb 1501534053 Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 5071124640; Mon, 31 Jul 2017 16:47:33 -0400 (EDT) From: Thomas Monjalon To: Pablo de Lara Cc: dev@dpdk.org, declan.doherty@intel.com Date: Mon, 31 Jul 2017 22:47:32 +0200 Message-ID: <3962811.70LsA9TyAl@xps> In-Reply-To: <20170731044037.70950-1-pablo.de.lara.guarch@intel.com> References: <20170731044037.70950-1-pablo.de.lara.guarch@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] examples/l2fwd-crypto: fix possible out-of-bounds X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Jul 2017 20:47:34 -0000 31/07/2017 06:40, Pablo de Lara: > rte_cryptodev_socket_id() returns the socket id of > a crypto device, unless the device id is not valid, > in which case, it returns -1. > This should not happen, as the device id is controlled > by the application, but just for safety, a check is added. > > Coverity issue: 158628, 158638, 158656, 158662 > Fixes: b3bbd9e5f265 ("cryptodev: support device independent sessions") > > Signed-off-by: Pablo de Lara Applied, thanks