Pavel Emelyanov 339a7c41c9 mac80211: Do not free net device after it is unregistered.
The error path in ieee80211_register_hw() may call the unregister_netdev()
and right after it - the free_netdev(), which is wrong, since the
unregister releases the device itself.

So the proposed fix is to NULL the local->mdev after unregister is done
and check this before calling free_netdev().

I checked - no code uses the local->mdev after unregister in this error
path (but even if some did this would be a BUG).

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-05-04 17:59:30 -07:00
..
2008-04-08 16:44:45 -04:00
2008-04-16 15:59:57 -04:00
2008-04-08 16:44:45 -04:00
2008-04-08 16:44:45 -04:00
2007-05-05 11:46:38 -07:00
2008-04-08 16:44:45 -04:00
2008-04-16 15:59:57 -04:00
2008-04-16 14:53:22 -04:00
2008-04-08 16:44:45 -04:00
2008-04-08 16:44:45 -04:00
2008-04-08 16:44:45 -04:00
2008-04-08 16:44:45 -04:00
2008-04-08 16:44:45 -04:00
2008-04-08 16:44:45 -04:00
2008-04-08 16:44:45 -04:00
2008-04-08 16:44:45 -04:00
2008-04-23 21:25:35 -04:00
2008-04-08 16:44:45 -04:00
2008-04-08 16:44:45 -04:00
2008-04-30 20:34:26 -04:00
2008-04-08 16:44:45 -04:00
2008-04-08 16:44:45 -04:00
2008-04-08 16:44:45 -04:00
2008-03-06 15:30:46 -05:00
2008-04-08 16:44:45 -04:00
2008-04-16 15:59:57 -04:00
2008-02-29 15:19:17 -05:00
2008-03-06 15:30:46 -05:00