]> 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)
commitd2c483b80e4517b7fb481165b597d71a55dc37a9
treeb629e4de45d4e87c929bc49daa186e45e69775a8
parenta5740fe6e464db093d1503cb6765a7aa7604eb3e
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