]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix NULL ptr dereference during mesh peer connection for non HE devices
authorAbinaya Kalaiselvan <akalaise@codeaurora.org>
Wed, 23 Jun 2021 14:40:44 +0000 (20:10 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 23 Jun 2021 16:06:44 +0000 (18:06 +0200)
commitff83af9ddedd019a41f91b97d227986b30f4de0c
tree9b41b7375b9c8ebee1bb826c26363cb3ec96e21f
parent28d4e9c96534f3672ada9f36b39f5b6937815305
mac80211: fix NULL ptr dereference during mesh peer connection for non HE devices

"sband->iftype_data" is not assigned with any value for non HE supported
devices, which causes NULL pointer access during mesh peer connection
in those devices. Fix this by accessing the pointer after HE
capabilities condition check.

Cc: stable@vger.kernel.org
Fixes: da99d073734c (mac80211: reduce peer HE MCS/NSS to own capabilities)
Signed-off-by: Abinaya Kalaiselvan <akalaise@codeaurora.org>
Link: https://lore.kernel.org/r/1624459244-4497-1-git-send-email-akalaise@codeaurora.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/he.c