From: Johannes Berg Date: Tue, 29 Mar 2011 13:29:37 +0000 (-0700) Subject: iwlwifi: fix bugs in change_interface X-Git-Tag: v3.0-rc1~377^2~256^2^2~155 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2b76b3b31568da9d281a393845f17689594ccdf;p=pandora-kernel.git iwlwifi: fix bugs in change_interface 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. Cc: stable@kernel.org [2.6.38+] Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy --- Reading git-diff-tree failed