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>
Sun, 8 Oct 2017 01:07:25 +0000 (01:07 +0000)
commit7f757c5baf655bdf0006595582a36c2f9da9907f
tree9d06a7c9b5c8e24105dd62001ba686502aa2c1b9
parent2d056c212c992c401f3d9218bf62ab867fbc656d
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