Commit e1e46570 authored by Philippe Gerum's avatar Philippe Gerum

net/igb: down interface upon PCI unregister

Allow to safely unload the IGB driver module still hosting an active
rtnet interface, by forcing this interface down on behalf on the PCI
device removal handler.
Signed-off-by: Philippe Gerum's avatarPhilippe Gerum <rpm@xenomai.org>
parent 0b5a639b
......@@ -2432,6 +2432,7 @@ static void igb_remove(struct pci_dev *pdev)
struct igb_adapter *adapter = rtnetdev_priv(netdev);
struct e1000_hw *hw = &adapter->hw;
rtdev_down(netdev);
igb_down(adapter);
pm_runtime_get_noresume(&pdev->dev);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment