diff options
author | Ben Hutchings <ben.hutchings@codethink.co.uk> | 2015-03-03 03:53:08 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-03 05:30:56 +0300 |
commit | dacc73e0cf930e87e2e6a94d29156f1d5776b18f (patch) | |
tree | 3499adf3aa71c7c60806d715a7fc84828bd83cdf /drivers/net/dummy.c | |
parent | 9b4a6364a6b3176511956ad186f8dffbe2e60c3e (diff) | |
download | linux-dacc73e0cf930e87e2e6a94d29156f1d5776b18f.tar.xz |
sh_eth: Really fix padding of short frames on TX
My previous fix to clear padding of short frames used skb->len as the
DMA length, assuming that skb_padto() extended skb->len to include the
padding. That isn't the case; we need to use skb_put_padto() instead.
(This wasn't immediately obvious because software padding isn't
actually needed on the R-Car H2. We could make it conditional on
which chip is being driven, but it's probably not worth the effort.)
Reported-by: "Violeta Menéndez González" <violeta.menendez@codethink.co.uk>
Fixes: 612a17a54b50 ("sh_eth: Fix padding of short frames on TX")
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dummy.c')
0 files changed, 0 insertions, 0 deletions