linux/kernel/irq
Andrew Jones e6a3fc4f10 genirq/msi: Prevent NULL pointer dereference in msi_domain_debug_show()
irq_domain_debug_show_one() calls msi_domain_debug_show() with a non-NULL
domain pointer and a NULL irq_data pointer. irq_debug_show_data() calls it
with a NULL domain pointer.

The domain pointer is not used, but the irq_data pointer is required to be
non-NULL and lacks a NULL pointer check.

Add the missing NULL pointer check to ensure there is a non-NULL irq_data
pointer in msi_domain_debug_show() before dereferencing it.

[ tglx: Massaged change log ]

Fixes: 01499ae673 ("genirq/msi: Expose MSI message data in debugfs")
Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250430124836.49964-2-ajones@ventanamicro.com
2025-04-30 23:25:10 +02:00
..
Kconfig powerpc updates for 6.15 2025-03-27 19:39:08 -07:00
Makefile
affinity.c
autoprobe.c
chip.c powerpc updates for 6.15 2025-03-27 19:39:08 -07:00
cpuhotplug.c
debug.h
debugfs.c
devres.c
dummychip.c
generic-chip.c
handle.c
internals.h Updates for interrupt chip drivers: 2025-03-25 09:54:36 -07:00
ipi-mux.c
ipi.c
irq_sim.c
irqdesc.c genirq: Make a few functions static 2025-03-10 10:01:20 +01:00
irqdomain.c irqdomain: Rename irq_get_default_host() to irq_get_default_domain() 2025-04-04 16:39:10 +02:00
kexec.c
manage.c genirq: Make a few functions static 2025-03-10 10:01:20 +01:00
matrix.c
migration.c genirq/migration: Use irqd_get_parent_data() in irq_force_complete_move() 2025-04-04 17:08:36 +02:00
msi.c genirq/msi: Prevent NULL pointer dereference in msi_domain_debug_show() 2025-04-30 23:25:10 +02:00
pm.c
proc.c
resend.c
settings.h
spurious.c
timings.c