[dpdk-stable] patch 'net/enic: fix possible null pointer dereference' has been queued to stable release 17.08.1

Yuanhan Liu yliu at fridaylinux.org
Tue Nov 21 14:15:58 CET 2017


Hi,

FYI, your patch has been queued to stable release 17.08.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 11/24/17. So please
shout if anyone has objections.

Thanks.

	--yliu

---
>From 553484c61f6f5040a67db92047d62481c1c13154 Mon Sep 17 00:00:00 2001
From: RongQiang Xie <xie.rongqiang at zte.com.cn>
Date: Wed, 23 Aug 2017 16:49:24 +0800
Subject: [PATCH] net/enic: fix possible null pointer dereference

[ upstream commit 7f4a1aa1430d085b80b6a483aac0e729a0b4f6df ]

In enic_alloc_consistent() function, if rte_malloc for mze is failed,
!mze is true, memzone should be freed and function should return NULL.

Fixes: da5f560be966 ("net/enic: fix memory freeing")

Signed-off-by: RongQiang Xie <xie.rongqiang at zte.com.cn>
Reviewed-by: Ferruh Yigit <ferruh.yigit at intel.com>
---
 drivers/net/enic/enic_main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c
index 40dbec7..1d956cd 100644
--- a/drivers/net/enic/enic_main.c
+++ b/drivers/net/enic/enic_main.c
@@ -368,6 +368,7 @@ enic_alloc_consistent(void *priv, size_t size,
 		pr_err("%s : Failed to allocate memory for memzone list\n",
 		       __func__);
 		rte_memzone_free(rz);
+		return NULL;
 	}
 
 	mze->rz = rz;
-- 
2.7.4



More information about the stable mailing list