projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c336acd
)
ntb_netdev: remove from list on exit
author
Jon Mason
<jon.mason@intel.com>
Thu, 18 Apr 2013 20:36:43 +0000
(13:36 -0700)
committer
Jon Mason
<jon.mason@intel.com>
Wed, 15 May 2013 17:58:14 +0000
(10:58 -0700)
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>
drivers/net/ntb_netdev.c
patch
|
blob
|
history
diff --git
a/drivers/net/ntb_netdev.c
b/drivers/net/ntb_netdev.c
index ed947dd76fbd1ded245f3e649dcf920cbe86320f..f3cdf64997d60dd6937ba8885dab3c72525b1f2b 100644
(file)
--- a/
drivers/net/ntb_netdev.c
+++ b/
drivers/net/ntb_netdev.c
@@
-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);