aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c
diff options
context:
space:
mode:
authorNiklas Cassel <niklas.cassel@axis.com>2017-06-20 14:32:41 +0200
committerDavid S. Miller <davem@davemloft.net>2017-06-20 15:41:00 -0400
commit05cf0d1bf4ed722aefff92775244dbe9e1bb4679 (patch)
tree17f1e6c46f6da8e830f3e13ac1edd17d49246978 /drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c
parentsfc: remove duplicate up_write on VF filter_sem (diff)
downloadlinux-dev-05cf0d1bf4ed722aefff92775244dbe9e1bb4679.tar.xz
linux-dev-05cf0d1bf4ed722aefff92775244dbe9e1bb4679.zip
net: stmmac: free an skb first when there are no longer any descriptors using it
When having the skb pointer in the first descriptor, stmmac_tx_clean can get called at a moment where the IP has only cleared the own bit of the first descriptor, thus freeing the skb, even though there can be several descriptors whose buffers point into the same skb. By simply moving the skb pointer from the first descriptor to the last descriptor, a skb will get freed only when the IP has cleared the own bit of all the descriptors that are using that skb. Signed-off-by: Niklas Cassel <niklas.cassel@axis.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c')
0 files changed, 0 insertions, 0 deletions