]> 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)
commit47894e3ed00d390b162cf808c688ad4e365c6280
treef4d27a0a835278f20965857a1939a945303f3621
parentb31a271ceea1c68524da79d3ca8ad40f6bb14df3
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