OSDN Git Service

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)
commit98e94771cadcef2952d3aa64e72b2b8fecef465b
tree055eb1ad1584fd9af4d2f63b5a73c3e6d05176d3
parent913112398d5e3e64eb3a45b8a0f1c196daed8f0b
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