Re: [PATCH V2 1/1] net: cdc_ncm: Fix TX zero padding

2017-05-08 Thread David Miller
From: Jim Baxter Date: Mon, 8 May 2017 13:49:57 +0100 > 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

[PATCH V2 1/1] net: cdc_ncm: Fix TX zero padding

2017-05-08 Thread Jim Baxter
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