summaryrefslogtreecommitdiff
path: root/drivers/lightnvm
diff options
context:
space:
mode:
authorJim Baxter <jim_baxter@mentor.com>2017-05-08 13:49:57 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-04-13 19:50:02 +0200
commitc81deea4de1c24a8613ce1ee25aaee5f99098fdf (patch)
tree24b719a7eb45ab85209a14688987079b75b3514b /drivers/lightnvm
parent008da9d04c57dc4def240b15b0bbed112fe7f420 (diff)
net: cdc_ncm: Fix TX zero padding
[ Upstream commit aeca3a77b1e0ed06a095933b89c86aed007383eb ] 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> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/lightnvm')
0 files changed, 0 insertions, 0 deletions