diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2015-07-06 13:18:29 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-07-12 00:14:23 +0300 |
commit | d452bca82d9ff4f220afa4234418912623db4fe6 (patch) | |
tree | 4e47ebadefea8ade90e145c065d46769bb0f3774 /drivers/irqchip/exynos-combiner.c | |
parent | b66231183a8542de1414e42326dd1c6bc4af75f4 (diff) | |
download | linux-d452bca82d9ff4f220afa4234418912623db4fe6.tar.xz |
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 <tglx@linutronix.de>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Barry Song <baohua@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: Olof Johansson <olof@lixom.net>
Link: http://lkml.kernel.org/r/20150706101543.470696950@linutronix.de
Diffstat (limited to 'drivers/irqchip/exynos-combiner.c')
0 files changed, 0 insertions, 0 deletions