diff options
author | Marc Zyngier <maz@kernel.org> | 2022-12-16 12:03:02 +0100 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2022-12-16 14:27:18 +0100 |
commit | db3568fd80a3999413c04ea0cf52596b7b0ad9aa (patch) | |
tree | 010a886cf91641f2031d3e01c389877b7aff3765 /lib/bch.c | |
parent | Merge tag 'exfat-for-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/gi... (diff) | |
download | linux-db3568fd80a3999413c04ea0cf52596b7b0ad9aa.tar.xz linux-db3568fd80a3999413c04ea0cf52596b7b0ad9aa.zip |
genirq/msi: Check for the presence of an irq domain when validating msi_ctrl
For architectures such as s390 and powerpc that do not use
irq domains for MSIs, dev->msi.domain is always NULL, so
the per-device, per-bus MSI domain is also guaranteed to
be NULL.
So checking one without checking the other is bound to result
in a splat, followed by a memory leak as we don't free the MSI
descriptors.
Add the missing check.
Reported-by: Matthew Rosato <mjrosato@linux.ibm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/e570e70d-19bc-101b-0481-ff9a3cab3504@linux.ibm.com
Diffstat (limited to 'lib/bch.c')
0 files changed, 0 insertions, 0 deletions