IPoIB: Avoid free_netdev() BUG when destroying a child interface
authorRoland Dreier <rolandd@cisco.com>
Tue, 31 Mar 2009 17:22:32 +0000 (10:22 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 31 Mar 2009 17:22:32 +0000 (10:22 -0700)
commitedb5abb1e2a84fd8802a3577d95eac84fe1405ab
treea1337e312058581acada61502ccee9ff99c28f96
parent5d80f8e5a9dc9c9a94d4aeaa567e219a808b8a4a
IPoIB: Avoid free_netdev() BUG when destroying a child interface

We have to release the RTNL before calling free_netdev() so that the
device state has a chance to become NETREG_UNREGISTERED.  Otherwise
when removing a child interface, we hit the BUG() that tests the
device state in free_netdev().

Reported-by: Yossi Etigin <yosefe@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib_vlan.c