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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jim Baxter <jim_baxter@xxxxxxxxxx> writes:

> 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@xxxxxxxxxx>

Ouch! Thanks for finding this.  This should go to the stable queue as
well.

Reviewed-by: Bjørn Mork <bjorn@xxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux