]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
hv_netvsc: Fix extra rcu_read_unlock in netvsc_recv_callback()
authorHaiyang Zhang <haiyangz@microsoft.com>
Fri, 19 Jul 2019 17:33:51 +0000 (17:33 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Jul 2019 06:28:24 +0000 (08:28 +0200)
[ Upstream commit be4363bdf0ce9530f15aa0a03d1060304d116b15 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/hyperv/netvsc_drv.c

index e7d8884b1a1084e0111f0c2f4abf54a7f07de222..e60a620f9e31d99df07ad0168fcc39a3e799a7b9 100644 (file)
@@ -849,7 +849,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;
        }