[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241121225100.5736-1-alexander@edera.dev>
Date: Thu, 21 Nov 2024 22:51:00 +0000
From: Alexander Merritt <alexander@...ra.dev>
To: v9fs@...ts.linux.dev,
linux-kernel@...r.kernel.org,
xen-devel@...ts.xenproject.org
Cc: Eric Van Hensbergen <ericvh@...nel.org>,
Latchesar Ionkov <lucho@...kov.net>,
Dominique Martinet <asmadeus@...ewreck.org>,
Christian Schoenebeck <linux_oss@...debyte.com>,
Juergen Gross <jgross@...e.com>,
Stefano Stabellini <sstabellini@...nel.org>,
Alex Zenla <alex@...ra.dev>,
Alexander Merritt <alexander@...ra.dev>,
Ariadne Conill <ariadne@...adne.space>
Subject: [PATCH] 9p/xen: fix release of IRQ
From: Alex Zenla <alex@...ra.dev>
Kernel logs indicate an IRQ was double-freed.
Pass correct device ID during IRQ release.
Fixes: 71ebd71921e45 ("xen/9pfs: connect to the backend")
Signed-off-by: Alex Zenla <alex@...ra.dev>
Signed-off-by: Alexander Merritt <alexander@...ra.dev>
Signed-off-by: Ariadne Conill <ariadne@...adne.space>
---
net/9p/trans_xen.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/net/9p/trans_xen.c b/net/9p/trans_xen.c
index dfdbe1ca5338..198d46d79d84 100644
--- a/net/9p/trans_xen.c
+++ b/net/9p/trans_xen.c
@@ -286,7 +286,8 @@ static void xen_9pfs_front_free(struct xen_9pfs_front_priv *priv)
if (!priv->rings[i].intf)
break;
if (priv->rings[i].irq > 0)
- unbind_from_irqhandler(priv->rings[i].irq, priv->dev);
+ unbind_from_irqhandler(priv->rings[i].irq, ring);
+ priv->rings[i].evtchn = priv->rings[i].irq = 0;
if (priv->rings[i].data.in) {
for (j = 0;
j < (1 << priv->rings[i].intf->ring_order);
--
2.43.0
Powered by blists - more mailing lists