Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Jon Mason <jon.mason@intel.com>

Jon Mason 904435cf c336acd3

+2
+2
drivers/net/ntb_netdev.c
··· 375 375 if (dev == NULL) 376 376 return; 377 377 378 + list_del(&dev->list); 379 + 378 380 ndev = dev->ndev; 379 381 380 382 unregister_netdev(ndev);