diff options
Diffstat (limited to 'drivers/net/hyperv/netvsc.c')
| -rw-r--r-- | drivers/net/hyperv/netvsc.c | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/hyperv/netvsc.c b/drivers/net/hyperv/netvsc.c index 0a9167dd72fb..d18c3326a1f7 100644 --- a/drivers/net/hyperv/netvsc.c +++ b/drivers/net/hyperv/netvsc.c @@ -78,6 +78,7 @@ static struct netvsc_device *alloc_net_device(void)  	net_device->max_pkt = RNDIS_MAX_PKT_DEFAULT;  	net_device->pkt_align = RNDIS_PKT_ALIGN_DEFAULT;  	init_completion(&net_device->channel_init_wait); +	init_waitqueue_head(&net_device->subchan_open);  	return net_device;  } @@ -1302,6 +1303,8 @@ int netvsc_device_add(struct hv_device *device,  		struct netvsc_channel *nvchan = &net_device->chan_table[i];  		nvchan->channel = device->channel; +		u64_stats_init(&nvchan->tx_stats.syncp); +		u64_stats_init(&nvchan->rx_stats.syncp);  	}  	/* Enable NAPI handler before init callbacks */  |