summaryrefslogtreecommitdiffstats
path: root/drivers/irqchip
diff options
context:
space:
mode:
authorJon Hunter <jonathanh@nvidia.com>2016-05-10 16:14:35 +0100
committerMarc Zyngier <marc.zyngier@arm.com>2016-05-11 10:12:41 +0100
commit9b5d585d148a19bcadae81fa17ddbe3e22efb9e9 (patch)
tree9d601b1a9c094bc4bc96934443158d8f454a8463 /drivers/irqchip
parent7c9b973061b03af62734f613f6abec46c0dd4a88 (diff)
downloadop-kernel-dev-9b5d585d148a19bcadae81fa17ddbe3e22efb9e9.zip
op-kernel-dev-9b5d585d148a19bcadae81fa17ddbe3e22efb9e9.tar.gz
genirq: Ensure IRQ descriptor is valid when setting-up the IRQ
In the function, setup_irq(), we don't check that the descriptor returned from irq_to_desc() is valid before we start using it. For example chip_bus_lock() called from setup_irq(), assumes that the descriptor pointer is valid and doesn't check before dereferencing it. In many other functions including setup/free_percpu_irq() we do check that the descriptor returned is not NULL and therefore add the same test to setup_irq() to ensure the descriptor returned is valid. Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'drivers/irqchip')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud