From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v4] crypto/qat: add null point check and fix mem leak Date: Thu, 01 Feb 2018 00:33:41 +0100 Message-ID: <5801381.qQ5GPbfyJT@xps> References: <1516863184-4713-1-git-send-email-wang.yong19@zte.com.cn> <348A99DA5F5B7549AA880327E580B435893008D3@IRSMSX101.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, "Trahe, Fiona" To: Yong Wang Return-path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 5E4061B838 for ; Thu, 1 Feb 2018 00:34:31 +0100 (CET) In-Reply-To: <348A99DA5F5B7549AA880327E580B435893008D3@IRSMSX101.ger.corp.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" > > There are several func calls to rte_zmalloc() which don't do null > > point check on the return value. And before return, the memory is not > > freed. Fix it by adding null point check and rte_free(). > > > > Fixes: 1703e94ac5ce ("qat: add driver for QuickAssist devices") > > Fixes: e09231eaa2af ("crypto/qat: add SGL capability") > > > > Signed-off-by: Yong Wang > Acked-by: Fiona Trahe Applied, thanks