summaryrefslogtreecommitdiff
path: root/lib/sg_split.c
diff options
context:
space:
mode:
authorJuergen Gross <jgross@suse.com>2023-09-27 10:29:02 +0200
committerJuergen Gross <jgross@suse.com>2023-11-15 09:02:59 +0100
commit5dd9ad32d7758b1a76742f394acf0eb3ac8a636a (patch)
treee4a467a1b8f623e1c3c11916c927a4cf58dc19a7 /lib/sg_split.c
parent3bdb0ac350fe5e6301562143e4573971dd01ae0b (diff)
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>
Diffstat (limited to 'lib/sg_split.c')
0 files changed, 0 insertions, 0 deletions