iwlwifi: do not nulify ctx->vif on reset
authorStanislaw Gruszka <[email protected]>
Wed, 18 Apr 2012 15:01:15 +0000 (08:01 -0700)
committerJohn W. Linville <[email protected]>
Mon, 23 Apr 2012 18:56:12 +0000 (14:56 -0400)
commit8db4c7e25d153fb049e81715d72fa3be3a0c3b69
tree9ea2cd4f36d525b5eaee150cce811b71a2d6ffa0
parent83722bd4aede80714f75bedc3cce9b6ea9baea7b
iwlwifi: do not nulify ctx->vif on reset

ctx->vif is dereferenced in different part of iwlwifi code, so do not
nullify it.

This should address at least one of the possible reasons of WARNING at
iwlagn_mac_remove_interface, and perhaps some random crashes when
firmware reset is performed.

Cc: [email protected]
Signed-off-by: Stanislaw Gruszka <[email protected]>
Signed-off-by: Wey-Yi Guy <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/iwlwifi/iwl-mac80211.c