hv_netvsc: dev hold/put reference to VF
authorStephen Hemminger <sthemmin@microsoft.com>
Thu, 22 Sep 2016 23:56:30 +0000 (16:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Sep 2016 12:39:48 +0000 (08:39 -0400)
commit07d0f0008c783d2a2fce8497000938db15fd7aa1
treeb792016c8e949a41850a188a6eadebb9250f74eb
parent17db4bcef3c3c45b95b3b3d8577f725df1b2c0a0
hv_netvsc: dev hold/put reference to VF

The netvsc driver holds a pointer to the virtual function network device if
managing SR-IOV association. In order to ensure that the VF network device
does not disappear, it should be using dev_hold/dev_put to get a reference
count.

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