]> git.karo-electronics.de Git - karo-tx-linux.git/commit
iwlwifi: do not nulify ctx->vif on reset
authorStanislaw Gruszka <sgruszka@redhat.com>
Wed, 18 Apr 2012 15:01:15 +0000 (08:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2012 15:53:37 +0000 (08:53 -0700)
commit8aef975a543c0d567dc2fe2eb527dd1f5cfc1e72
treecf7672edb08d59d470f1d191d3fd732c2fa1c4b3
parent2ba8c996f8fd34e8162b6fab6255a9eb6ad1b893
iwlwifi: do not nulify ctx->vif on reset

commit 8db4c7e25d153fb049e81715d72fa3be3a0c3b69 upstream.

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.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/iwlwifi/iwl-mac80211.c