]> git.itanic.dy.fi Git - linux-stable/commit
brcmfmac: Make skb header writable before use
authorJames Hughes <james.hughes@raspberrypi.org>
Tue, 25 Apr 2017 09:15:06 +0000 (10:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 14 May 2017 11:32:57 +0000 (13:32 +0200)
commit59fcc1b357eb64448cfe978e1fe5525182704df1
tree4dc597b0eccc637d4c646089935b6cd0b99401d6
parent0d89c7a27b1a13cc62c4c0a2869e8812252f92c1
brcmfmac: Make skb header writable before use

commit 9cc4b7cb86cbcc6330a3faa8cd65268cd2d3c227 upstream.

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