]> git.baikalelectronics.ru Git - kernel.git/commit
brcmfmac: Ensure pointer correctly set if skb data location changes
authorJames Hughes <james.hughes@raspberrypi.org>
Mon, 24 Apr 2017 11:40:50 +0000 (12:40 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 26 Apr 2017 09:04:32 +0000 (12:04 +0300)
commit78cf2cd0441cb83402afa75cb2686c358d22fd12
treec9128c8ff4e111c4b6bc230addbb16e31fbf4f09
parentefb5133e64048aedae7d4c8ebf7b8ee5a05600ae
brcmfmac: Ensure pointer correctly set if skb data location changes

The incoming skb header may be resized if header space is
insufficient, which might change the data adddress in the skb.
Ensure that a cached pointer to that data is correctly set by
moving assignment to after any possible changes.

Signed-off-by: James Hughes <james.hughes@raspberrypi.org>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c