[dpdk-stable] patch 'net/octeontx: fix null pointer dereference' has been queued to LTS release 17.11.2

Yuanhan Liu yliu at fridaylinux.org
Sun Apr 22 17:09:06 CEST 2018


Hi,

FYI, your patch has been queued to LTS release 17.11.2

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 04/29/18. So please
shout if anyone has objections.

Thanks.

	--yliu

---
>From 2ea90622af0f937f06a5298afa66b3bca46fda47 Mon Sep 17 00:00:00 2001
From: Santosh Shukla <santosh.shukla at caviumnetworks.com>
Date: Tue, 20 Feb 2018 22:44:15 +0530
Subject: [PATCH] net/octeontx: fix null pointer dereference

[ upstream commit a98122ef6601015374bb2d598012331ddfd2b81d ]

Coverity issue: 195040
Fixes: f18b146c498d ("net/octeontx: create ethdev ports")

Signed-off-by: Santosh Shukla <santosh.shukla at caviumnetworks.com>
---
 drivers/net/octeontx/octeontx_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/octeontx/octeontx_ethdev.c b/drivers/net/octeontx/octeontx_ethdev.c
index eca3a39fd..890c7ea19 100644
--- a/drivers/net/octeontx/octeontx_ethdev.c
+++ b/drivers/net/octeontx/octeontx_ethdev.c
@@ -1142,7 +1142,7 @@ octeontx_create(struct rte_vdev_device *dev, int port, uint8_t evdev,
 	return data->port_id;
 
 err:
-	if (port)
+	if (nic)
 		octeontx_port_close(nic);
 
 	if (eth_dev != NULL) {
-- 
2.11.0



More information about the stable mailing list