net/ark: fix null pointer dereference
Coverity issue: 144520 Fixes: 727b3fe292bc ("net/ark: integrate PMD") Cc: stable@dpdk.org Signed-off-by: John Miller <john.miller@atomicrules.com>
This commit is contained in:
parent
d1434c0479
commit
bc10f22b6d
@ -516,11 +516,7 @@ eth_ark_dev_uninit(struct rte_eth_dev *dev)
|
|||||||
dev->dev_ops = NULL;
|
dev->dev_ops = NULL;
|
||||||
dev->rx_pkt_burst = NULL;
|
dev->rx_pkt_burst = NULL;
|
||||||
dev->tx_pkt_burst = NULL;
|
dev->tx_pkt_burst = NULL;
|
||||||
if (dev->data->mac_addrs)
|
rte_free(dev->data->mac_addrs);
|
||||||
rte_free(dev->data->mac_addrs);
|
|
||||||
if (dev->data)
|
|
||||||
rte_free(dev->data);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user