]> 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)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 11 May 2012 12:14:55 +0000 (13:14 +0100)
commit77a23ae9ae9e552e885292b120d19434c25aad89
tree675d7a8a11ef57b742b3363e2bb1ce0ff00112f2
parent5183d50f79157ba0c0e4fcdf882421e6bdabc562
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>
[bwh: Backported to 3.2:
 - Change filename iwl-mac80211.c to iwl-core.c
 - Change context in iwlagn_prepare_restart()]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/iwlwifi/iwl-core.c