ntb_netdev: remove from list on exit
authorJon Mason <jon.mason@intel.com>
Thu, 18 Apr 2013 20:36:43 +0000 (13:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 May 2013 18:36:05 +0000 (11:36 -0700)
commit32c0e1fe6fe8a9992f582b60a4f15858add89fcb
tree0fd46b6c00aeff1c42800b4d5783a02b4137321e
parent7e98a1733e34e1564a2668ea6210df94cf572a22
ntb_netdev: remove from list on exit

commit 904435cf76a9bdd5eb41b1c4e049d5a64f3a8400 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ntb_netdev.c