Michal Kazior 47e4df94d1 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 <torvalds@linux-foundation.org>
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-08-22 14:45:49 -07:00
..
2014-06-23 14:22:18 +02:00
2014-04-09 10:55:30 +02:00
2014-04-09 14:49:43 +02:00
2014-06-25 09:10:43 +02:00
2014-07-21 12:14:04 +02:00
2014-06-23 11:05:23 +02:00
2014-07-21 16:04:27 +02:00
2014-04-29 17:59:27 +02:00
2014-04-29 17:59:27 +02:00
2014-04-09 14:49:43 +02:00
2014-06-23 11:05:23 +02:00
2014-06-25 09:10:43 +02:00
2014-07-21 12:14:04 +02:00
2014-06-23 11:05:31 +02:00