]> git.baikalelectronics.ru Git - kernel.git/commit
wlcore: make some of the fwlog calculations more obvious
authorRussell King <rmk+kernel@armlinux.org.uk>
Thu, 3 Jun 2021 11:54:19 +0000 (12:54 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 14 Jun 2021 15:49:41 +0000 (18:49 +0300)
commit05646a9b2c1e22e6262b944c71fda5f087b7e0ae
tree055eb1ad1584fd9af4d2f63b5a73c3e6d05176d3
parent81c9f0161c955d7a4b9cbb74056bf210fc090b92
wlcore: make some of the fwlog calculations more obvious

Make some of the fwlog calculations more obvious by calculating bits
that get used and documenting what they are. Validate the read pointer
while we're at it to ensure we do not overflow the data block we have
allocated and read.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/E1lolvX-0003R3-RE@rmk-PC.armlinux.org.uk
drivers/net/wireless/ti/wlcore/event.c