]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: ignore processing invalid command response
authorSwati Kushwaha <swatiuma@marvell.com>
Fri, 21 Jun 2019 14:14:44 +0000 (19:44 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 25 Jun 2019 04:52:45 +0000 (07:52 +0300)
commit96c43812f668177b9dd8e63bb93bc2241049a64c
treeb629e4de45d4e87c929bc49daa186e45e69775a8
parent69ff26296b0975954f377632588c345007fdd3a9
mwifiex: ignore processing invalid command response

Firmware can send invalid command response, the processing of
which can attempt to modify unexpected context and cause issues.
To fix this, driver should check that the command response ID is
same as the one it downloaded, and ignore processing of invalid
response.

Signed-off-by: Swati Kushwaha <swatiuma@marvell.com>
Signed-off-by: Ganapathi Bhat <gbhat@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/cmdevt.c
drivers/net/wireless/marvell/mwifiex/main.h