Jim Baxter aeca3a77b1 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>
2017-05-08 16:01:10 -04:00
..
2016-08-31 21:07:05 -07:00
2017-04-03 19:09:40 -07:00
2017-04-03 19:09:40 -07:00
2017-05-08 16:01:10 -04:00
2017-04-03 19:09:40 -07:00
2017-04-03 19:09:40 -07:00
2017-04-25 10:08:16 -04:00
2017-04-03 19:09:40 -07:00
2017-04-25 10:08:16 -04:00
2017-04-03 19:09:40 -07:00
2017-04-03 19:09:40 -07:00
2017-04-03 19:09:40 -07:00