]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
xen/events: drop xen_allocate_irqs_dynamic()
authorJuergen Gross <jgross@suse.com>
Wed, 27 Sep 2023 08:29:02 +0000 (10:29 +0200)
committerJuergen Gross <jgross@suse.com>
Wed, 15 Nov 2023 08:02:59 +0000 (09:02 +0100)
commit5dd9ad32d7758b1a76742f394acf0eb3ac8a636a
treee4a467a1b8f623e1c3c11916c927a4cf58dc19a7
parent3bdb0ac350fe5e6301562143e4573971dd01ae0b
xen/events: drop xen_allocate_irqs_dynamic()

Instead of having a common function for allocating a single IRQ or a
consecutive number of IRQs, split up the functionality into the callers
of xen_allocate_irqs_dynamic().

This allows to handle any allocation error in xen_irq_init() gracefully
instead of panicing the system. Let xen_irq_init() return the irq_info
pointer or NULL in case of an allocation error.

Additionally set the IRQ into irq_info already at allocation time, as
otherwise the IRQ would be '0' (which is a valid IRQ number) until
being set.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/events/events_base.c