genirq/msi: Add size info to struct msi_domain_info
authorThomas Gleixner <tglx@linutronix.de>
Thu, 24 Nov 2022 23:25:51 +0000 (00:25 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 5 Dec 2022 18:21:01 +0000 (19:21 +0100)
commit61bf992fc618503c910416f28afa0b015838b72b
treecb7076b5658c01be314cd01a5a687a018c79b107
parentebca4396ee18521e9e5d435a15e5d0ab2eb6b009
genirq/msi: Add size info to struct msi_domain_info

To allow proper range checking especially for dynamic allocations add a
size field to struct msi_domain_info. If the field is 0 then the size is
unknown or unlimited (up to MSI_MAX_INDEX) to provide backwards
compability.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221124232325.501144862@linutronix.de
include/linux/msi.h
kernel/irq/msi.c