From: Michal Kazior Date: Mon, 18 Aug 2014 11:19:09 +0000 (+0200) Subject: mac80211: fix channel switch for chanctx-based drivers X-Git-Tag: omap-for-v3.17/fixes-against-rc2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47e4df94d129cbca84de252ff63c4ded08a513e7;p=pandora-kernel.git mac80211: fix channel switch for chanctx-based drivers The new_ctx pointer is set only for non-chanctx drivers. This yielded a crash for chanctx-based drivers during channel switch finalization: BUG: unable to handle kernel NULL pointer dereference at 0000000000000020 IP: ieee80211_vif_use_reserved_switch+0x71c/0xb00 [mac80211] Use an adequate chanctx pointer to fix this. Reported-by: Linus Torvalds Signed-off-by: Michal Kazior Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed