diff options
author | Nikita Shubin <nikita.shubin@maquefel.me> | 2020-12-10 10:05:14 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2020-12-12 00:25:48 +0100 |
commit | 9d5522199505c761575c8ea31dcfd9a2a8d73614 (patch) | |
tree | 15d81f62f0b87cb1b73885a8b3ba0f4d4e9b0ccc /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | e6071cada1694bf13c63e31381993df494d78c42 (diff) |
gpiolib: irq hooks: fix recursion in gpiochip_irq_unmask
irqchip shared with multiple gpiochips, leads to recursive call of
gpiochip_irq_mask/gpiochip_irq_unmask which was assigned to
rqchip->irq_mask/irqchip->irq_unmask, these happens becouse of
only irqchip->irq_enable == gpiochip_irq_enable is checked.
Let's add an additional check to make sure shared irqchip is detected
even if irqchip->irq_enable wasn't defined.
Fixes: a8173820f441 ("gpio: gpiolib: Allow GPIO IRQs to lazy disable")
Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me>
Link: https://lore.kernel.org/r/20201210070514.13238-1-nikita.shubin@maquefel.me
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions