irqchip/imx-intmux: Handle pure domain searches correctly
authorThomas Gleixner <tglx@linutronix.de>
Tue, 20 Feb 2024 08:46:19 +0000 (09:46 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 20 Feb 2024 16:30:57 +0000 (17:30 +0100)
commit34da27aa8956d3a75c7556a59c9c7cfd0b3f18ab
tree6722c2f628ef762d4d594aa4ac2544b46a2f4c0c
parent9bbe13a5d414a7f8208dba64b54d2b6e4f7086bd
irqchip/imx-intmux: Handle pure domain searches correctly

The removal of the paremeter count restriction in the core code to allow
pure domain token based select() decisions broke the IMX intmux select
callback as that unconditioally expects that there is a parameter.

Add the missing check for zero parameter count and the token match.

Fixes: de1ff306dcf4 ("genirq/irqdomain: Remove the param count restriction from select()")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/87ttm3ikok.ffs@tglx
drivers/irqchip/irq-imx-intmux.c