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

Unverified Commit 904435cf authored by Jon Mason's avatar Jon Mason
Browse files

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
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -375,6 +375,8 @@ static void ntb_netdev_remove(struct pci_dev *pdev)
	if (dev == NULL)
		return;

	list_del(&dev->list);

	ndev = dev->ndev;

	unregister_netdev(ndev);