From: David Vrabel Date: Fri, 15 Jan 2016 14:55:35 +0000 (+0000) Subject: xen-netback: delete NAPI instance when queue fails to initialize X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=4a658527271bce43afb1cf4feec89afe6716ca59;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/xen-netback/interface.c b/drivers/net/xen-netback/interface.c index e7bd63eb2876..3bba6ceee132 100644 --- a/drivers/net/xen-netback/interface.c +++ b/drivers/net/xen-netback/interface.c @@ -615,6 +615,7 @@ err_tx_unbind: queue->tx_irq = 0; err_unmap: xenvif_unmap_frontend_rings(queue); + netif_napi_del(&queue->napi); err: module_put(THIS_MODULE); return err;