Commit b2709f78 authored by Ganesh Goudar's avatar Ganesh Goudar Committed by Greg Kroah-Hartman

cxgb4: do not set needs_free_netdev for mgmt dev's

[ Upstream commit b06ef18a ]

Do not set 'needs_free_netdev' as we do call free_netdev
for mgmt net devices, doing both hits BUG_ON.
Signed-off-by: default avatarGanesh Goudar <>
Signed-off-by: default avatarDavid S. Miller <>
Signed-off-by: default avatarSasha Levin <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent ba5b9b64
......@@ -4679,7 +4679,6 @@ static void dummy_setup(struct net_device *dev)
/* Initialize the device structure. */
dev->netdev_ops = &cxgb4_mgmt_netdev_ops;
dev->ethtool_ops = &cxgb4_mgmt_ethtool_ops;
dev->needs_free_netdev = true;
static int config_mgmt_dev(struct pci_dev *pdev)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment