]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211: fix null-ptr dereference on invalid mesh configuration
authorJohannes Berg <johannes.berg@intel.com>
Mon, 18 Sep 2017 20:46:36 +0000 (22:46 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 18 Sep 2017 20:51:07 +0000 (22:51 +0200)
commit9fd9214cb53f78cd10cde6c36f18e082e0ae8f2b
treedcf575e252d1108b92cd98ebb0b7e77b304819c9
parent34146723607697d742a48866afd015ca1cbf61a0
nl80211: fix null-ptr dereference on invalid mesh configuration

If TX rates are specified during mesh join, the channel must
also be specified. Check the channel pointer to avoid a null
pointer dereference if it isn't.

Reported-by: Jouni Malinen <j@w1.fi>
Fixes: cdbcafed9ea1 ("cfg80211: add checks for beacon rate, extend to mesh")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c