Commit 904435cf authored by Jon Mason's avatar Jon Mason

ntb_netdev: remove from list on exit

The ntb_netdev device is not removed from the global list of devices
upon device removal.  If the device is re-added, the removal code would
find the first instance and try to remove an already removed device.
Signed-off-by: default avatarJon Mason <jon.mason@intel.com>
parent c336acd3
...@@ -375,6 +375,8 @@ static void ntb_netdev_remove(struct pci_dev *pdev) ...@@ -375,6 +375,8 @@ static void ntb_netdev_remove(struct pci_dev *pdev)
if (dev == NULL) if (dev == NULL)
return; return;
list_del(&dev->list);
ndev = dev->ndev; ndev = dev->ndev;
unregister_netdev(ndev); unregister_netdev(ndev);
......
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