diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-05-04 17:59:30 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-05-04 17:59:30 -0700 |
commit | 339a7c41c913035bf58579f6e47b4ba29da83795 (patch) | |
tree | ef9c696d9d73f34f75c3470c0a1997964b2256eb /fs | |
parent | e340a90e6e07bba6e6b3fc39dd5fa76f95579d7c (diff) |
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>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions