mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 06:37:59 +00:00
xen-netback: delete NAPI instance when queue fails to initialize
When xenvif_connect() fails it may leave a stale NAPI instance added to the device. Make sure we delete it in the error path. Signed-off-by: David Vrabel <david.vrabel@citrix.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
99a2dea50d
commit
4a65852727
1 changed files with 1 additions and 0 deletions
|
@ -615,6 +615,7 @@ err_tx_unbind:
|
||||||
queue->tx_irq = 0;
|
queue->tx_irq = 0;
|
||||||
err_unmap:
|
err_unmap:
|
||||||
xenvif_unmap_frontend_rings(queue);
|
xenvif_unmap_frontend_rings(queue);
|
||||||
|
netif_napi_del(&queue->napi);
|
||||||
err:
|
err:
|
||||||
module_put(THIS_MODULE);
|
module_put(THIS_MODULE);
|
||||||
return err;
|
return err;
|
||||||
|
|
Loading…
Add table
Reference in a new issue