]> 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)
commit275dee05c208dba9d4d079c870d1ce10f1f194d1
tree055eb1ad1584fd9af4d2f63b5a73c3e6d05176d3
parent0cf5990b41253af1a1b632d8472ce83b37aa9b7e
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