]> git.baikalelectronics.ru Git - kernel.git/commit
iwlegacy: fix bugs in change_interface
authorJohannes Berg <johannes.berg@intel.com>
Tue, 29 Mar 2011 13:28:11 +0000 (15:28 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 29 Mar 2011 19:45:14 +0000 (15:45 -0400)
commit626941cb84790451a1ea5f1b3d6a3256d0d41b6d
treea7004233c9607eee54fbb7fa4c40d386168a9d74
parent371684a0d8474b84dce0ba0ee6bd97dc803d2496
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 <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlegacy/iwl-core.c