diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2026-04-14 10:23:19 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2026-04-14 10:23:19 -0700 |
| commit | 1d5e40351e7d521d7d143447d57315b6eb1e1160 (patch) | |
| tree | bf6284db8d5a7bb6ae54ed4bb8a6a24b85044617 | |
| parent | c0ecb2a9eeaa25832c1367ecc865ab2523b8c3d5 (diff) | |
| parent | aa80869b77e16d30ce69523528c63a2e2b050634 (diff) | |
| download | linux-next-1d5e40351e7d521d7d143447d57315b6eb1e1160.tar.gz linux-next-1d5e40351e7d521d7d143447d57315b6eb1e1160.zip | |
Merge tag 'irq-msi-2026-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull MSI interrupt update from Thomas Gleixner:
"A small update for the MSI interrupt library to check for callers
which fail to provide the mandatory irq_write_msi_msg() callback,
which prevents a NULL pointer dereference later"
* tag 'irq-msi-2026-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
irqchip/msi-lib: Refuse initialization when irq_write_msi_msg() is missing
| -rw-r--r-- | drivers/irqchip/irq-msi-lib.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/irqchip/irq-msi-lib.c b/drivers/irqchip/irq-msi-lib.c index d5eefc3d7215..45e0ed3134ce 100644 --- a/drivers/irqchip/irq-msi-lib.c +++ b/drivers/irqchip/irq-msi-lib.c @@ -48,6 +48,9 @@ bool msi_lib_init_dev_msi_info(struct device *dev, struct irq_domain *domain, return false; } + if (WARN_ON_ONCE(!chip->irq_write_msi_msg)) + return false; + required_flags = pops->required_flags; /* Is the target domain bus token supported? */ |
