[PATCH for-v4.13 V4] brcmfmac: Don't grow SKB by negative size

2017-07-26 Thread Daniel Stone
() does allow for size being 0, in which case it just copies, so clamp the header delta to zero. Opening Chrome (and all my tabs) on a PCIE device was enough to reliably hit this. Fixes: 270a6c1f65fe ("brcmfmac: rework headroom check in .start_xmit()") Signed-off-by: Daniel S

[PATCH for-4.13 V3] brcmfmac: Don't grow SKB by negative size

2017-07-26 Thread Daniel Stone
() does allow for size being 0, in which case it just copies, so clamp the header delta to zero. Opening Chrome (and all my tabs) on a PCIE device was enough to reliably hit this. Fixes: 270a6c1f65fe ("brcmfmac: rework headroom check in .start_xmit()") Signed-off-by: Daniel S

[PATCH v2] brcmfmac: Don't grow SKB by negative size

2017-07-26 Thread Daniel Stone
() does allow for size being 0, in which case it just copies, so clamp the header delta to zero. Opening Chrome (and all my tabs) on a PCIE device was enough to reliably hit this. Fixes: 270a6c1f65fe ("brcmfmac: rework headroom check in .start_xmit()") Signed-off-by: Daniel S

[PATCH] brcmfmac: Don't grow SKB by negative size

2017-07-26 Thread Daniel Stone
() does allow for size being 0, in which case it just copies, so clamp the header delta to zero. Opening Chrome (and all my tabs) on a PCIE device was enough to reliably hit this. Fixes: 270a6c1f65fe ("brcmfmac: rework headroom check in .start_xmit()") Signed-off-by: Daniel S