smsc95xx: Use skb_cow_head to deal with cloned skbs
authorJames Hughes <james.hughes@raspberrypi.org>
Wed, 19 Apr 2017 10:13:40 +0000 (11:13 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Sat, 31 Mar 2018 14:53:30 +0000 (15:53 +0100)
commit1ad3fbcd0727dd8920302a88da35484b47cc1770
tree873fada16e7cd1875775ee30d6f8f215bc9ab65a
parentaa63f5630aeabb029ded9109badd2d53f0150b21
smsc95xx: Use skb_cow_head to deal with cloned skbs

The driver was failing to check that the SKB wasn't cloned
before adding checksum data.
Replace existing handling to extend/copy the header buffer
with skb_cow_head.

Signed-off-by: James Hughes <james.hughes@raspberrypi.org>
Acked-by: Eric Dumazet <edumazet@google.com>
Acked-by: Woojung Huh <Woojung.Huh@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc95xx.c