[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210301161007.049917293@linuxfoundation.org>
Date: Mon, 1 Mar 2021 17:12:15 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-kernel@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
stable@...r.kernel.org, David Vrabel <david.vrabel@...rix.com>,
"David S. Miller" <davem@...emloft.net>,
SeongJae Park <sjpark@...zon.com>,
Markus Boehme <markubo@...zon.de>
Subject: [PATCH 4.4 03/93] xen-netback: delete NAPI instance when queue fails to initialize
From: David Vrabel <david.vrabel@...rix.com>
commit 4a658527271bce43afb1cf4feec89afe6716ca59 upstream.
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@...rix.com>
Signed-off-by: David S. Miller <davem@...emloft.net>
Cc: SeongJae Park <sjpark@...zon.com>
Tested-by: Markus Boehme <markubo@...zon.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
---
drivers/net/xen-netback/interface.c | 1 +
1 file changed, 1 insertion(+)
--- a/drivers/net/xen-netback/interface.c
+++ b/drivers/net/xen-netback/interface.c
@@ -662,6 +662,7 @@ err_tx_unbind:
queue->tx_irq = 0;
err_unmap:
xenvif_unmap_frontend_rings(queue);
+ netif_napi_del(&queue->napi);
err:
return err;
}
Powered by blists - more mailing lists