]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mwifiex: Fix oob check condition in mwifiex_process_rx_packet
authorPin-yen Lin <treapking@chromium.org>
Fri, 8 Sep 2023 10:41:12 +0000 (18:41 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Oct 2023 19:59:06 +0000 (21:59 +0200)
commit5afb996349cb6d1f14d6ba9aaa7aed3bd82534f6
tree3ac24ab1852c2d02942ec2fc8cb7a03d463a9d7c
parent7c8faa31080342aec4903c9acb20caf82fcca1ef
wifi: mwifiex: Fix oob check condition in mwifiex_process_rx_packet

[ Upstream commit aef7a0300047e7b4707ea0411dc9597cba108fc8 ]

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: 119585281617 ("wifi: mwifiex: Fix OOB and integer underflow when rx packets")
Signed-off-by: Pin-yen Lin <treapking@chromium.org>
Acked-by: Brian Norris <briannorris@chromium.org>
Reviewed-by: Matthew Wang <matthewmwang@chromium.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230908104308.1546501-1-treapking@chromium.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/marvell/mwifiex/sta_rx.c