netvsc: don't signal host twice if empty
authorstephen hemminger <stephen@networkplumber.org>
Thu, 10 Aug 2017 00:46:04 +0000 (17:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Aug 2017 20:59:42 +0000 (13:59 -0700)
commit5e20d55a23a76a876396ba1235bdf019e74d0c6f
tree6e63a1a4e1f9b0789c2c71839569d13d8d068938
parent6123c66854c174e4982f98195100c1d990f9e5e6
netvsc: don't signal host twice if empty

When hv_pkt_iter_next() returns NULL, it has already called
hv_pkt_iter_close(). Calling it twice can lead to extra host signal.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc.c