]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wil6210: check null pointer in _wil_cfg80211_merge_extra_ies
authorAlexei Avshalom Lazar <ailizaro@codeaurora.org>
Fri, 22 Feb 2019 14:21:05 +0000 (16:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2019 20:29:08 +0000 (22:29 +0200)
commita6958075ea4d8a8b1448880c83b98a2631aff5f3
tree6b19a4120a2671236be0e864be84d6e79ad44037
parentae0c4d3260115db7ebd31c0fa1f75fbf1ad64c08
wil6210: check null pointer in _wil_cfg80211_merge_extra_ies

[ Upstream commit de77a53c2d1e8fb3621e63e8e1f0f0c9a1a99ff7 ]

ies1 or ies2 might be null when code inside
_wil_cfg80211_merge_extra_ies access them.
Add explicit check for null and make sure ies1/ies2 are not
accessed in such a case.

spos might be null and be accessed inside
_wil_cfg80211_merge_extra_ies.
Add explicit check for null in the while condition statement
and make sure spos is not accessed in such a case.

Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/ath/wil6210/cfg80211.c