From 005ce1ca39da87902bd49976e1945b70101c1167 Mon Sep 17 00:00:00 2001 From: Yong Wang Date: Fri, 15 Sep 2017 07:48:28 -0400 Subject: [PATCH] net/liquidio: fix uninitialized variable In func lio_dev_link_update(), "link.link_autoneg" is used in func call lio_dev_atomic_write_link_status(), but it is uninitialized. Fixes: 3766020513df ("net/liquidio: add APIs to start device and update link") Cc: stable@dpdk.org Signed-off-by: Yong Wang Acked-by: Shijith Thotton --- drivers/net/liquidio/lio_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/liquidio/lio_ethdev.c b/drivers/net/liquidio/lio_ethdev.c index a17fba5017..a3c8e67627 100644 --- a/drivers/net/liquidio/lio_ethdev.c +++ b/drivers/net/liquidio/lio_ethdev.c @@ -974,6 +974,7 @@ lio_dev_link_update(struct rte_eth_dev *eth_dev, link.link_status = ETH_LINK_DOWN; link.link_speed = ETH_SPEED_NUM_NONE; link.link_duplex = ETH_LINK_HALF_DUPLEX; + link.link_autoneg = ETH_LINK_AUTONEG; memset(&old, 0, sizeof(old)); /* Return what we found */ -- 2.20.1