]> 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)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 28 Feb 2019 09:25:09 +0000 (11:25 +0200)
commitde77a53c2d1e8fb3621e63e8e1f0f0c9a1a99ff7
tree22bf71c06f0bd62680fc086d58c0b0a00b679608
parent979c9d8d01c482b1befb44dc639ecb907b5a37bd
wil6210: check null pointer in _wil_cfg80211_merge_extra_ies

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>
drivers/net/wireless/ath/wil6210/cfg80211.c