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)
commit455a1eb4654c24560eb9dfc634f29cba3d87601e
treec9128c8ff4e111c4b6bc230addbb16e31fbf4f09
parent9dc7efd3978aa67ae598129d2a3f240b390ce508
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