[dpdk-stable] patch 'compress/isal: set null pointer after freeing' has been queued to stable release 18.05.1
Christian Ehrhardt
christian.ehrhardt at canonical.com
Mon Jul 30 18:12:52 CEST 2018
Hi,
FYI, your patch has been queued to stable release 18.05.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 08/01/18. So please
shout if anyone has objections.
Thanks.
Christian Ehrhardt <christian.ehrhardt at canonical.com>
---
>From 9d1f05325367b9b64dcea8820dd4cea5a5e96206 Mon Sep 17 00:00:00 2001
From: Pablo de Lara <pablo.de.lara.guarch at intel.com>
Date: Wed, 11 Jul 2018 07:38:45 +0100
Subject: [PATCH] compress/isal: set null pointer after freeing
[ upstream commit 2d02781c7ad90cd68dd0a05ce3323b2b0d8a991c ]
Fixes: b0e23c458a6f ("compress/isal: add queue pair related ops")
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch at intel.com>
Acked-by: Lee Daly <lee.daly at intel.com>
---
drivers/compress/isal/isal_compress_pmd_ops.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/compress/isal/isal_compress_pmd_ops.c b/drivers/compress/isal/isal_compress_pmd_ops.c
index 970a0413b..83b09c2dc 100644
--- a/drivers/compress/isal/isal_compress_pmd_ops.c
+++ b/drivers/compress/isal/isal_compress_pmd_ops.c
@@ -165,8 +165,8 @@ isal_comp_pmd_qp_release(struct rte_compressdev *dev, uint16_t qp_id)
if (qp->state != NULL)
rte_free(qp->state);
- if (dev->data->queue_pairs[qp_id] != NULL)
- rte_free(dev->data->queue_pairs[qp_id]);
+ rte_free(qp);
+ dev->data->queue_pairs[qp_id] = NULL;
return 0;
}
--
2.17.1
More information about the stable
mailing list