Unverified Commit ac4e4642 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!6142 [sync] PR-6047: hv_netvsc: Fix race condition between netvsc_probe and netvsc_remove

parents efed1a4d 7338b5fb
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -654,7 +654,10 @@ void netvsc_device_remove(struct hv_device *device)
	/* Disable NAPI and disassociate its context from the device. */
	for (i = 0; i < net_device->num_chn; i++) {
		/* See also vmbus_reset_channel_cb(). */
		/* only disable enabled NAPI channel */
		if (i < ndev->real_num_rx_queues)
			napi_disable(&net_device->chan_table[i].napi);

		netif_napi_del(&net_device->chan_table[i].napi);
	}