]> git.karo-electronics.de Git - karo-tx-linux.git/commit
iwlwifi: fix bugs in change_interface
authorJohannes Berg <johannes.berg@intel.com>
Tue, 29 Mar 2011 13:29:37 +0000 (06:29 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Jun 2011 01:33:48 +0000 (10:33 +0900)
commitc5c970a5a59305869358cf1e5d2bce710b0e10c7
tree9a10711f60d821e24b148c2168a35cc26c60b7ac
parent1db58ae0a6e032378326412bd446ea23591ff50c
iwlwifi: fix bugs in change_interface

commit a2b76b3b31568da9d281a393845f17689594ccdf upstream.

If change_interface gets invoked during a firmware
restart, it may crash; prevent that from happening
by checking if ctx->vif is assigned.

Additionally, in my initial commit I forgot to set
the vif->p2p variable correctly, so fix that too.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/iwlwifi/iwl-core.c