Skip to content
Commit aef7a030 authored by Pin-yen Lin's avatar Pin-yen Lin Committed by Kalle Valo
Browse files

wifi: mwifiex: Fix oob check condition in mwifiex_process_rx_packet



Only skip the code path trying to access the rfc1042 headers when the
buffer is too small, so the driver can still process packets without
rfc1042 headers.

Fixes: 11958528 ("wifi: mwifiex: Fix OOB and integer underflow when rx packets")
Signed-off-by: default avatarPin-yen Lin <treapking@chromium.org>
Acked-by: default avatarBrian Norris <briannorris@chromium.org>
Reviewed-by: default avatarMatthew Wang <matthewmwang@chromium.org>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230908104308.1546501-1-treapking@chromium.org
parent 2e1b3ae3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment