summaryrefslogtreecommitdiffstats
path: root/net/irda/irlan
diff options
context:
space:
mode:
authorJim Baxter <jim_baxter@mentor.com>2017-05-08 14:49:57 +0200
committerDavid S. Miller <davem@davemloft.net>2017-05-08 22:01:10 +0200
commitaeca3a77b1e0ed06a095933b89c86aed007383eb (patch)
tree17c512c5adb4fa015607454c29a1c9095f508bfb /net/irda/irlan
parentMerge branch 'stmmac-pci-fix-crash-on-Intel-Galileo-Gen2' (diff)
downloadlinux-aeca3a77b1e0ed06a095933b89c86aed007383eb.tar.xz
linux-aeca3a77b1e0ed06a095933b89c86aed007383eb.zip
net: cdc_ncm: Fix TX zero padding
The zero padding that is added to NTB's does not zero the memory correctly. This is because the skb_put modifies the value of skb_out->len which results in the memset command not setting any memory to zero as (ctx->tx_max - skb_out->len) == 0. I have resolved this by storing the size of the memory to be zeroed before the skb_put and using this in the memset call. Signed-off-by: Jim Baxter <jim_baxter@mentor.com> Reviewed-by: Bjørn Mork <bjorn@mork.no> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/irda/irlan')
0 files changed, 0 insertions, 0 deletions