Skip to content

Commit

Permalink
9p/xen: fix release of IRQ
Browse files Browse the repository at this point in the history
[ Upstream commit e43c608f40c065b30964f0a806348062991b802d ]

Kernel logs indicate an IRQ was double-freed.

Pass correct device ID during IRQ release.

Fixes: 71ebd71 ("xen/9pfs: connect to the backend")
Signed-off-by: Alex Zenla <[email protected]>
Signed-off-by: Alexander Merritt <[email protected]>
Signed-off-by: Ariadne Conill <[email protected]>
Reviewed-by: Juergen Gross <[email protected]>
Message-ID: <[email protected]>
[Dominique: remove confusing variable reset to 0]
Signed-off-by: Dominique Martinet <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
  • Loading branch information
azenla authored and gregkh committed Dec 5, 2024
1 parent c9a1f76 commit 692eb06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/9p/trans_xen.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ 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);
if (priv->rings[i].data.in) {
for (j = 0; j < (1 << XEN_9PFS_RING_ORDER); j++) {
grant_ref_t ref;
Expand Down

0 comments on commit 692eb06

Please sign in to comment.