This is a note to let you know that I've just added the patch titled xen/events: fix error code in xen_bind_pirq_msi_to_irq() to the 6.6-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: xen-events-fix-error-code-in-xen_bind_pirq_msi_to_irq.patch and it can be found in the queue-6.6 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 7f3da4b698bcc21a6df0e7f114af71d53a3e26ac Mon Sep 17 00:00:00 2001 From: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Date: Tue, 28 Nov 2023 09:52:41 +0300 Subject: xen/events: fix error code in xen_bind_pirq_msi_to_irq() From: Dan Carpenter <dan.carpenter@xxxxxxxxxx> commit 7f3da4b698bcc21a6df0e7f114af71d53a3e26ac upstream. Return -ENOMEM if xen_irq_init() fails. currently the code returns an uninitialized variable or zero. Fixes: 5dd9ad32d775 ("xen/events: drop xen_allocate_irqs_dynamic()") Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Reviewed-by: Juergen Gross <jgross@xxxxxxxx> Link: https://lore.kernel.org/r/3b9ab040-a92e-4e35-b687-3a95890a9ace@moroto.mountain Signed-off-by: Juergen Gross <jgross@xxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/xen/events/events_base.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/drivers/xen/events/events_base.c +++ b/drivers/xen/events/events_base.c @@ -1099,8 +1099,10 @@ int xen_bind_pirq_msi_to_irq(struct pci_ for (i = 0; i < nvec; i++) { info = xen_irq_init(irq + i); - if (!info) + if (!info) { + ret = -ENOMEM; goto error_irq; + } irq_set_chip_and_handler_name(irq + i, &xen_pirq_chip, handle_edge_irq, name); Patches currently in stable-queue which might be from dan.carpenter@xxxxxxxxxx are queue-6.6/xen-events-fix-error-code-in-xen_bind_pirq_msi_to_irq.patch queue-6.6/pci-dwc-fix-a-64bit-bug-in-dw_pcie_ep_raise_msix_irq.patch queue-6.6/smb3-add-missing-null-server-pointer-check.patch