From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 5C45D2C57 for ; Thu, 1 Feb 2018 10:48:31 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 13A98202F7; Thu, 1 Feb 2018 04:48:31 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Thu, 01 Feb 2018 04:48:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=qwZTzoMZDLWcrmh5W Up65qOcqoqc3rpcaR5UyglPeCs=; b=YKr+claWjILXTo6zevYquduImLaWdzvBQ fWHmHHIUFtYMWJ9p3tq6RtySqw51jbYBCGeKqD/ArtuHF46ClMn8z5tvD0ocXMql 2yfsIrq8ml4MhVQTX0ZSyB9zuFlAo0uhp4rukqctcQ1DhjIc1BOFLRGPDbzpai4O 1zPP51opcGuuYi3Oy5PnJwtRLA7DoOYG2T6xX4CbljURyUBlzZSXl2mab9Q6SWG7 aDLKXZZObdKvV/vhm/NLy3tjZNljJE6nNzAZXenXDUrQuCeMzEVYKgIMky7v2P0l qkV9gwYQiJCqbVlkSPIwLqlXyk9+rqGC9cTji0fgKDtOWvp8S/FEw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=qwZTzoMZDLWcrmh5WUp65qOcqoqc3rpcaR5UyglPeCs=; b=sj1i1Ybo JxH7WzErpo8VetSEglGuY4T60QPuYAieXE8q3GeL21RkyQohPqdaJiIOiHz9hwJg N1ANccJdtGtTvYim74FYkWR835swt120YH3QJrM1VTZjsrL4isN1oCIzWTLxKIpk vqe9mj+mXBeybNS6dH1wFkN5eWVs8UgeiZP7lNL/8YqJvog+D/N9c8J+agrEPkqh 1cNIcnKasevMou/4w7pzio4nMVqtz9oxagDUa31HGnFGZM5XIJ+XFOCTu/0lqrqa Q0+dCBlW/b6pneb/8Hds80XAjTuMgKV7A3+4iJ4hZIHC/ZB6kYZB6o9zdcVlGNvp HYY79AffRksKDQ== X-ME-Sender: Received: from yliu-mob.mtl.com (unknown [115.150.27.200]) by mail.messagingengine.com (Postfix) with ESMTPA id BEA59245F1; Thu, 1 Feb 2018 04:48:28 -0500 (EST) From: Yuanhan Liu To: Zhiyong Yang Cc: Akhil Goyal , Pablo de Lara , dpdk stable Date: Thu, 1 Feb 2018 17:47:25 +0800 Message-Id: <1517478479-12417-11-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517478479-12417-1-git-send-email-yliu@fridaylinux.org> References: <1517478479-12417-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'cryptodev: fix session pointer cast' has been queued to LTS release 17.11.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Feb 2018 09:48:31 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/03/18. So please shout if anyone has objections. Thanks. --yliu --- >>From 8828baa809878cee37b45db17457bbf1c673874d Mon Sep 17 00:00:00 2001 From: Zhiyong Yang Date: Tue, 23 Jan 2018 17:48:13 +0800 Subject: [PATCH] cryptodev: fix session pointer cast [ upstream commit 513942f07c8e6d55fe109732b68d79056f4e885c ] The wrong casts don't cause actual error, but they should conform to C standard. Fixes: c261d1431bd8 ("security: introduce security API and framework") Fixes: b3bbd9e5f265 ("cryptodev: support device independent sessions") Signed-off-by: Zhiyong Yang Acked-by: Akhil Goyal Acked-by: Pablo de Lara --- lib/librte_cryptodev/rte_cryptodev.c | 2 +- lib/librte_security/rte_security.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_cryptodev/rte_cryptodev.c b/lib/librte_cryptodev/rte_cryptodev.c index fb9c0d4..9fe0d9d 100644 --- a/lib/librte_cryptodev/rte_cryptodev.c +++ b/lib/librte_cryptodev/rte_cryptodev.c @@ -1122,7 +1122,7 @@ rte_cryptodev_sym_session_create(struct rte_mempool *mp) struct rte_cryptodev_sym_session *sess; /* Allocate a session structure from the session pool */ - if (rte_mempool_get(mp, (void *)&sess)) { + if (rte_mempool_get(mp, (void **)&sess)) { CDEV_LOG_ERR("couldn't get object from session mempool"); return NULL; } diff --git a/lib/librte_security/rte_security.c b/lib/librte_security/rte_security.c index 1227fca..685729f 100644 --- a/lib/librte_security/rte_security.c +++ b/lib/librte_security/rte_security.c @@ -49,7 +49,7 @@ rte_security_session_create(struct rte_security_ctx *instance, RTE_FUNC_PTR_OR_ERR_RET(*instance->ops->session_create, NULL); - if (rte_mempool_get(mp, (void *)&sess)) + if (rte_mempool_get(mp, (void **)&sess)) return NULL; if (instance->ops->session_create(instance->device, conf, sess, mp)) { -- 2.7.4