OSDN Git Service

hv_netvsc: Fix error handling in netvsc_set_features()
authorHaiyang Zhang <haiyangz@microsoft.com>
Wed, 30 Oct 2019 15:32:11 +0000 (15:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Oct 2019 01:17:36 +0000 (18:17 -0700)
commitc4509a5ac0ace94d5b1f0092dc4d36933c1d896e
tree8710715dceb299bed1ac3ef42b420d61c25f3dd6
parentfc89cc358fb64e2429aeae0f37906126636507ec
hv_netvsc: Fix error handling in netvsc_set_features()

When an error is returned by rndis_filter_set_offload_params(), we should
still assign the unaffected features to ndev->features. Otherwise, these
features will be missing.

Fixes: d6792a5a0747 ("hv_netvsc: Add handler for LRO setting change")
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c