PCI: xgene-msi: Fix race in installing chained irq handler
authorMartin Kaiser <martin@kaiser.cx>
Fri, 15 Jan 2021 21:24:35 +0000 (22:24 +0100)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 18 Jan 2021 15:48:06 +0000 (15:48 +0000)
commita93c00e5f975f23592895b7e83f35de2d36b7633
treecf0f74a083575e486e5e54ef0f3a7529eb9a8c20
parentad1cc6b75a79471d14b64c32bf13067659ba2bac
PCI: xgene-msi: Fix race in installing chained irq handler

Fix a race where a pending interrupt could be received and the handler
called before the handler's data has been setup, by converting to
irq_set_chained_handler_and_data().

See also 2cf5a03cb29d ("PCI/keystone: Fix race in installing chained IRQ
handler").

Based on the mail discussion, it seems ok to drop the error handling.

Link: https://lore.kernel.org/r/20210115212435.19940-3-martin@kaiser.cx
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/pci-xgene-msi.c