brcmfmac: Make skb header writable before use
authorJames Hughes <james.hughes@raspberrypi.org>
Tue, 25 Apr 2017 09:15:06 +0000 (10:15 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 26 Apr 2017 09:05:18 +0000 (12:05 +0300)
commit9cc4b7cb86cbcc6330a3faa8cd65268cd2d3c227
tree3d14d129a0cbcbe99f102bfee8ff9b7785865a5f
parent455a1eb4654c24560eb9dfc634f29cba3d87601e
brcmfmac: Make skb header writable before use

The driver was making changes to the skb_header without
ensuring it was writable (i.e. uncloned).
This patch also removes some boiler plate header size
checking/adjustment code as that is also handled by the
skb_cow_header function used to make header writable.

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