summaryrefslogtreecommitdiff
path: root/drivers/pcmcia/bcm63xx_pcmcia.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2015-06-21 21:16:09 +0300
committerThomas Gleixner <tglx@linutronix.de>2015-06-25 12:57:01 +0300
commit2cf5a03cb29debb00681a8af1dfa9179b43404d1 (patch)
treec7112ba69e207ad89cf595c1d92723a56170bcf0 /drivers/pcmcia/bcm63xx_pcmcia.c
parentc30e30478c74e5be2fa3bbe954084a31f0d60570 (diff)
downloadlinux-2cf5a03cb29debb00681a8af1dfa9179b43404d1.tar.xz
PCI/keystone: 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(). Search and conversion was done with coccinelle: @@ expression E1, E2, E3; @@ ( -if (irq_set_chained_handler(E1, E3) != 0) - BUG(); | -irq_set_chained_handler(E1, E3); ) -irq_set_handler_data(E1, E2); +irq_set_chained_handler_and_data(E1, E3, E2); @@ expression E1, E2, E3; @@ ( -if (irq_set_chained_handler(E1, E3) != 0) - BUG(); ... | -irq_set_chained_handler(E1, E3); ... ) -irq_set_handler_data(E1, E2); +irq_set_chained_handler_and_data(E1, E3, E2); Reported-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Julia Lawall <Julia.Lawall@lip6.fr> Cc: Murali Karicheri <m-karicheri2@ti.com> Cc: Bjorn Helgaas <bhelgaas@google.com> Cc: linux-pci@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org
Diffstat (limited to 'drivers/pcmcia/bcm63xx_pcmcia.c')
0 files changed, 0 insertions, 0 deletions