From: Johannes Berg Date: Tue, 29 Mar 2011 13:28:11 +0000 (+0200) Subject: iwlegacy: fix bugs in change_interface X-Git-Tag: v2.6.39-rc2~7^2~8^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffd8c746fbef50cf12df239f9d23c2afe1a2c3cb;p=pandora-kernel.git iwlegacy: 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: John W. Linville --- Reading git-diff-tree failed