0001-smsx95xx-fix-crimes-against-truesize.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. From 5f5e9d496540a0e6f915a04e8b9f364eed5e1f7a Mon Sep 17 00:00:00 2001
  2. From: Steve Glendinning <steve.glendinning@smsc.com>
  3. Date: Thu, 19 Feb 2015 18:47:12 +0000
  4. Subject: [PATCH] smsx95xx: fix crimes against truesize
  5. smsc95xx is adjusting truesize when it shouldn't, and following a recent patch from Eric this is now triggering warnings.
  6. This patch stops smsc95xx from changing truesize.
  7. Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com>
  8. ---
  9. drivers/net/usb/smsc95xx.c | 2 --
  10. 1 file changed, 2 deletions(-)
  11. mode change 100644 => 100755 drivers/net/usb/smsc95xx.c
  12. --- a/drivers/net/usb/smsc95xx.c
  13. +++ b/drivers/net/usb/smsc95xx.c
  14. @@ -1788,7 +1788,6 @@ static int smsc95xx_rx_fixup(struct usbn
  15. if (dev->net->features & NETIF_F_RXCSUM)
  16. smsc95xx_rx_csum_offload(skb);
  17. skb_trim(skb, skb->len - 4); /* remove fcs */
  18. - skb->truesize = size + sizeof(struct sk_buff);
  19. return 1;
  20. }
  21. @@ -1806,7 +1805,6 @@ static int smsc95xx_rx_fixup(struct usbn
  22. if (dev->net->features & NETIF_F_RXCSUM)
  23. smsc95xx_rx_csum_offload(ax_skb);
  24. skb_trim(ax_skb, ax_skb->len - 4); /* remove fcs */
  25. - ax_skb->truesize = size + sizeof(struct sk_buff);
  26. usbnet_skb_return(dev, ax_skb);
  27. }