aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/irqchip/irq-versatile-fpga.c
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2015-07-06 10:18:29 +0000
committerThomas Gleixner <[email protected]>2015-07-11 21:14:23 +0000
commitd452bca82d9ff4f220afa4234418912623db4fe6 (patch)
tree4e47ebadefea8ade90e145c065d46769bb0f3774 /drivers/irqchip/irq-versatile-fpga.c
parentirqchip/dw-apb-ictl: Fix generic domain chip wreckage (diff)
downloadkernel-d452bca82d9ff4f220afa4234418912623db4fe6.tar.gz
kernel-d452bca82d9ff4f220afa4234418912623db4fe6.zip
irqchip/sirfsoc: Fix generic chip allocation wreckage
irq_alloc_domain_generic_chips() can only be called once for an irqdomain. The sirfsoc init calls it twice and because the return value is not checked it does not notice the wreckage. The code works by chance because the first call already allocates two chips and therefor the second call to sirfsoc_alloc_gc() operates on the proper generic chip instance. Use a single call and setup the two chips in the obvious correct way. Signed-off-by: Thomas Gleixner <[email protected]> Cc: Jason Cooper <[email protected]> Cc: Barry Song <[email protected]> Cc: [email protected] Cc: Olof Johansson <[email protected]> Link: http://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/irqchip/irq-versatile-fpga.c')
0 files changed, 0 insertions, 0 deletions