diff options
author | Haiyang Zhang <haiyangz@microsoft.com> | 2019-07-19 20:33:51 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-22 06:40:28 +0300 |
commit | be4363bdf0ce9530f15aa0a03d1060304d116b15 (patch) | |
tree | 5f5f9cc3f74e5dad5b8311c88f0c158f110bde12 /drivers/net/hyperv | |
parent | 107e47cc80ec37cb332bd41b22b1c7779e22e018 (diff) | |
download | linux-be4363bdf0ce9530f15aa0a03d1060304d116b15.tar.xz |
hv_netvsc: Fix extra rcu_read_unlock in netvsc_recv_callback()
There is an extra rcu_read_unlock left in netvsc_recv_callback(),
after a previous patch that removes RCU from this function.
This patch removes the extra RCU unlock.
Fixes: 345ac08990b8 ("hv_netvsc: pass netvsc_device to receive callback")
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hyperv')
-rw-r--r-- | drivers/net/hyperv/netvsc_drv.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c index afdcc5664ea6..3544e1991579 100644 --- a/drivers/net/hyperv/netvsc_drv.c +++ b/drivers/net/hyperv/netvsc_drv.c @@ -836,7 +836,6 @@ int netvsc_recv_callback(struct net_device *net, if (unlikely(!skb)) { ++net_device_ctx->eth_stats.rx_no_memory; - rcu_read_unlock(); return NVSP_STAT_FAIL; } |