diff options
author | David Vrabel <david.vrabel@citrix.com> | 2016-01-15 14:55:35 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-01-15 15:13:18 -0500 |
commit | 4a658527271bce43afb1cf4feec89afe6716ca59 (patch) | |
tree | eac8a0c52a45422e15a1c0b6a068c32d0890848f /drivers/net | |
parent | 99a2dea50d5deff134b6c346f53a3ad1f583ee96 (diff) |
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/xen-netback/interface.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |