From: Johannes Berg Date: Tue, 29 Mar 2011 13:29:37 +0000 (-0700) Subject: iwlwifi: fix bugs in change_interface X-Git-Tag: v2.6.39.1~130 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a46053ab736c81bcfc442f9ca44317d64159dfb3;p=pandora-kernel.git 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 Signed-off-by: Wey-Yi Guy Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed