From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 330B91B4C5; Wed, 11 Jul 2018 18:14:19 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Jul 2018 09:14:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,338,1526367600"; d="scan'208";a="66142380" Received: from irsmsx154.ger.corp.intel.com ([163.33.192.96]) by orsmga003.jf.intel.com with ESMTP; 11 Jul 2018 09:14:15 -0700 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.26]) by IRSMSX154.ger.corp.intel.com ([169.254.12.32]) with mapi id 14.03.0319.002; Wed, 11 Jul 2018 17:14:14 +0100 From: "Daly, Lee" To: "De Lara Guarch, Pablo" CC: "dev@dpdk.org" , "stable@dpdk.org" Thread-Topic: [PATCH 2/3] compress/isal: set null pointer after freeing Thread-Index: AQHUGSWzp8H40jUPd0Ge8njS8pvrVaSKMg6Q Date: Wed, 11 Jul 2018 16:14:14 +0000 Message-ID: References: <20180711063846.47189-1-pablo.de.lara.guarch@intel.com> <20180711063846.47189-2-pablo.de.lara.guarch@intel.com> In-Reply-To: <20180711063846.47189-2-pablo.de.lara.guarch@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMDNiOTUyNDgtYzY4NS00OGJlLTg5YWMtYjhhZmQ3ODU3YzczIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJ0NVBZbjZSRXR5R2FNdGJPTmlwbHhBOHFjODVOZFFZbTZLcWRGRzZnNFwveTlBWllrUzdlakU1bmpmMUs4TFVRaiJ9 x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH 2/3] compress/isal: set null pointer after freeing 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: Wed, 11 Jul 2018 16:14:20 -0000 > -----Original Message----- > From: De Lara Guarch, Pablo > Sent: Wednesday, July 11, 2018 7:39 AM > To: Daly, Lee > Cc: dev@dpdk.org; De Lara Guarch, Pablo ; > stable@dpdk.org > Subject: [PATCH 2/3] compress/isal: set null pointer after freeing >=20 > Fixes: b0e23c458a6f ("compress/isal: add queue pair related ops") > Cc: stable@dpdk.org >=20 > Signed-off-by: Pablo de Lara > --- > drivers/compress/isal/isal_compress_pmd_ops.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/drivers/compress/isal/isal_compress_pmd_ops.c > b/drivers/compress/isal/isal_compress_pmd_ops.c > index 585f22802..0738fb9c4 100644 > --- a/drivers/compress/isal/isal_compress_pmd_ops.c > +++ b/drivers/compress/isal/isal_compress_pmd_ops.c > @@ -167,8 +167,8 @@ isal_comp_pmd_qp_release(struct rte_compressdev > *dev, uint16_t qp_id) > if (qp->state !=3D NULL) > rte_free(qp->state); >=20 > - if (dev->data->queue_pairs[qp_id] !=3D NULL) > - rte_free(dev->data->queue_pairs[qp_id]); > + rte_free(qp); > + dev->data->queue_pairs[qp_id] =3D NULL; >=20 > return 0; > } > -- > 2.14.4 Acked-by: Lee Daly