]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: add missing sanity check on diag download
authorBrian Norris <briannorris@chromium.org>
Fri, 21 Sep 2018 20:42:41 +0000 (13:42 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 2 Oct 2018 04:49:09 +0000 (07:49 +0300)
commit402e6d3c29ac28300febf85dff1f504a5fe00171
treef6d0af44e1ff272f724f21d90a4b896aa6f79757
parentf36c694261a2a5bdc778f1841be8d0205949f7cc
ath10k: add missing sanity check on diag download

ath10k_hw_diag_fast_download() generally has good boundary checking, but
it misses verifying that the next metadata header actually fits in the
remaining buffer space. Add such a check.

Fixes: 7e9e4031cace ("ath10k: download firmware via diag Copy Engine for QCA6174 and QCA9377.")
Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/hw.c