From: Yong Wang Date: Fri, 15 Sep 2017 11:48:28 +0000 (-0400) Subject: net/liquidio: fix uninitialized variable X-Git-Tag: spdx-start~1946 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=005ce1ca39da87902bd49976e1945b70101c1167;p=dpdk.git 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 --- 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 */