]> git.baikalelectronics.ru Git - kernel.git/commit
brcmfmac: rework pointer trickery in brcmf_proto_bcdc_query_dcmd()
authorArend Van Spriel <arend.vanspriel@broadcom.com>
Mon, 19 Sep 2016 11:09:52 +0000 (12:09 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 26 Sep 2016 17:35:52 +0000 (20:35 +0300)
commit31322b97ca881fd6b41c2560557c9603ee25605c
treee7678d19bdd0f2559c9dfe2004d753ef37bd495a
parent2b20c5b008472f4148ccd38f47899ee5f95223af
brcmfmac: rework pointer trickery in brcmf_proto_bcdc_query_dcmd()

The variable info is assigned to point to bcdc->msg[1], which is the
same as pointing to bcdc->buf. As that is what we want to access
make it clear by fixing the assignment. This also avoid out-of-bounds
errors from static analyzers are bcdc->msg[1] is not in the structure
definition.

Reviewed-by: Hante Meuleman <hante.meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com>
Reviewed-by: Franky Lin <franky.lin@broadcom.com>
Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c