]> asedeno.scripts.mit.edu Git - linux.git/commit
mwifiex: pcie: tighten a check in mwifiex_pcie_process_event_ready()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 5 Apr 2018 11:17:19 +0000 (14:17 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 25 Apr 2018 08:20:36 +0000 (11:20 +0300)
commit01eca2842874b9a85b7cd1e1b0e5b34a5d53a21f
treebd5fff3b53fc14e87875da3f7c35ce40d779392a
parentc1003538bf6b28a4bae8e511672fa5abaabe683c
mwifiex: pcie: tighten a check in mwifiex_pcie_process_event_ready()

If "evt_len" is 1 then we try to memcpy() negative 3 bytes and it would
cause memory corruption.

Fixes: d930faee141b ("mwifiex: add support for Marvell pcie8766 chipset")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/pcie.c