]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: wlcore: correctness fix fwlog reading
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 28 May 2024 09:17:42 +0000 (10:17 +0100)
committerKalle Valo <kvalo@kernel.org>
Tue, 18 Jun 2024 10:22:10 +0000 (13:22 +0300)
commit64ff013ce0986952fad1678d7faf8998584fc500
treebc9e1545de25531d9e60a83daea5c3b3b7f95f4d
parenta2ead3445a6317c5d2b53711cf9a98e54c395223
wifi: wlcore: correctness fix fwlog reading

Fix the calculation of clear_offset, which may overflow the end of
the buffer. However, this is harmless if it does because in that case
it will be recalculated when we copy the chunk of messages at the
start of the buffer.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/E1sBsxi-00E8vQ-5r@rmk-PC.armlinux.org.uk
drivers/net/wireless/ti/wlcore/event.c