iwlegacy: do not nulify il->vif on reset
authorStanislaw Gruszka <sgruszka@redhat.com>
Tue, 13 Mar 2012 15:11:27 +0000 (16:11 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 26 Mar 2012 19:07:22 +0000 (15:07 -0400)
commit883a649b737cdbe3ede7e50f3f939fd706ed5c4e
tree6091c7138144cd252c830c7dd357438c98c4e31c
parent8a78335442cea429afb2b964318b6e257448ea00
iwlegacy: do not nulify il->vif on reset

This il->vif is dereferenced in different part of iwlegacy code, so do
not nullify it. This should fix random crashes observed in companion
with microcode errors i.e. crash in il3945_config_ap().

Additionally this should address also
WARNING: at drivers/net/wireless/iwlegacy/common.c:4656 il_mac_remove_interface
at least one of the possible reasons of that warning.

Cc: stable@vger.kernel.org
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlegacy/3945-mac.c
drivers/net/wireless/iwlegacy/4965-mac.c
drivers/net/wireless/iwlegacy/common.c