Commit 8d62e9bf authored by Linus Torvalds's avatar Linus Torvalds
Browse files

Merge tag 'irq-urgent-2024-04-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull irq fix from Ingo Molnar:
 "Fix a double free bug in the init error path of the GICv3 irqchip
  driver"

* tag 'irq-urgent-2024-04-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  irqchip/gic-v3-its: Prevent double free on error
parents 2c815938 c26591af
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -4567,14 +4567,9 @@ static int its_vpe_irq_domain_alloc(struct irq_domain *domain, unsigned int virq
		irqd_set_resend_when_in_progress(irq_get_irq_data(virq + i));
	}

	if (err) {
		if (i > 0)
	if (err)
		its_vpe_irq_domain_free(domain, virq, i);

		its_lpi_free(bitmap, base, nr_ids);
		its_free_prop_table(vprop_page);
	}

	return err;
}