From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] examples/l2fwd-crypto: fix possible out-of-bounds Date: Mon, 31 Jul 2017 22:47:32 +0200 Message-ID: <3962811.70LsA9TyAl@xps> References: <20170731044037.70950-1-pablo.de.lara.guarch@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, declan.doherty@intel.com To: Pablo de Lara 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) In-Reply-To: <20170731044037.70950-1-pablo.de.lara.guarch@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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