smsc75xx: fix smsc75xx_set_features()
authorEric Dumazet <edumazet@google.com>
Wed, 21 Feb 2018 05:42:26 +0000 (21:42 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:52:01 +0000 (07:52 +0200)
commitc254a86a333c77c70bebbda7277a73c0d6a11c8c
tree9a2b2590a1c82ed583264559f93f2c567ecec23c
parentcc4a2d71cff36bb36e8576c0cbe353ce4ced433d
smsc75xx: fix smsc75xx_set_features()

[ Upstream commit 88e80c62671ceecdbb77c902731ec95a4bfa62f9 ]

If an attempt is made to disable RX checksums, USB adapter is changed
but netdev->features is not, because smsc75xx_set_features() returns a
non zero value.

This throws errors from netdev_rx_csum_fault() :
<devname>: hw csum failure

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Steve Glendinning <steve.glendinning@shawell.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/usb/smsc75xx.c