ath6kl: assure headroom of skbuff is writable in .start_xmit()
authorArend Van Spriel <arend.vanspriel@broadcom.com>
Tue, 25 Apr 2017 09:10:08 +0000 (10:10 +0100)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 19 May 2017 07:47:04 +0000 (10:47 +0300)
commit1ed760c9aca0b69c5b24c6fd454bcc573a01df99
treea93bf10ac52ba52d284524b482afb88b1d223640
parent4dcb78085d569438e9616bf86d2a64e1acdc5e4a
ath6kl: assure headroom of skbuff is writable in .start_xmit()

An issue was found brcmfmac driver in which a skbuff in .start_xmit()
callback was actually cloned. So instead of checking for sufficient
headroom it should also be writable. Hence use skb_cow_head() to
check and expand the headroom appropriately.

Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Tested-by: Steve deRosier <derosier@gmail.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/txrx.c