Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

cxgb4: do not set needs_free_netdev for mgmt dev's



[ Upstream commit b06ef18a4c255609388ed6e068a1c69c797545e0 ]

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 <ganeshgr@chelsio.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <alexander.levin@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ba5b9b64
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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)