]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: add sanity check to ie_len before parsing fw/board ie
authorRyan Hsu <ryanhsu@codeaurora.org>
Tue, 16 Jan 2018 09:43:49 +0000 (11:43 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 16 Jan 2018 14:31:12 +0000 (16:31 +0200)
commit214d0ce8d6a380f8866e216304531e52f7d50745
treef4d27a0a835278f20965857a1939a945303f3621
parentd0322da1f01efb18e17ee5039d1653b378967b78
ath10k: add sanity check to ie_len before parsing fw/board ie

Validate ie_len after the alignment padding before access the buffer
to avoid potential overflow.

Signed-off-by: Ryan Hsu <ryanhsu@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/core.c