|
@@ -1348,7 +1348,8 @@ static void xennet_disconnect_backend(struct netfront_info *info)
|
|
|
queue->tx_evtchn = queue->rx_evtchn = 0;
|
|
|
queue->tx_irq = queue->rx_irq = 0;
|
|
|
|
|
|
- napi_synchronize(&queue->napi);
|
|
|
+ if (netif_running(info->netdev))
|
|
|
+ napi_synchronize(&queue->napi);
|
|
|
|
|
|
xennet_release_tx_bufs(queue);
|
|
|
xennet_release_rx_bufs(queue);
|