]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 May 2017 07:19:08 +0000 (09:19 +0200)
commitb8ebb5f3b1c23cf92da042cfcbdcfe265fbc6341
tree99819e2521a300720710ec2a18a2d8c5f3e4f640
parent4a60f8b1dc6bac8f56e37150e30e0fa784ecf62a
brcmfmac: Ensure pointer correctly set if skb data location changes

commit 455a1eb4654c24560eb9dfc634f29cba3d87601e upstream.

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>
Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c