Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4a658527 authored by David Vrabel's avatar David Vrabel Committed by David S. Miller
Browse files

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: default avatarDavid Vrabel <david.vrabel@citrix.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 99a2dea5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -615,6 +615,7 @@ int xenvif_connect(struct xenvif_queue *queue, unsigned long tx_ring_ref,
	queue->tx_irq = 0;
err_unmap:
	xenvif_unmap_frontend_rings(queue);
	netif_napi_del(&queue->napi);
err:
	module_put(THIS_MODULE);
	return err;