]> git.baikalelectronics.ru Git - kernel.git/commit
netvsc: make sure napi enabled before vmbus_open
authorstephen hemminger <stephen@networkplumber.org>
Wed, 3 May 2017 23:59:21 +0000 (16:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 May 2017 15:08:36 +0000 (11:08 -0400)
commit8c78d3eee921f2216921b9ccfcd17d95b6b40ca9
treed1fa6ad2f24c3840c1c6780254bbc95d3a01bdd9
parent49364025944b47ac0118b08ff7aabbeec6be53f2
netvsc: make sure napi enabled before vmbus_open

This fixes a race where vmbus callback for new packet arriving
could occur before NAPI is initialized.

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