]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: pl061: returning with lock held in pl061_irq_type()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 8 Oct 2015 07:12:01 +0000 (10:12 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 15 Oct 2015 14:43:51 +0000 (16:43 +0200)
commit74aab476403662286e691f973216e17d5b6081b3
treed0c39132649b032b524328ea7d0abf88a4134795
parenta472dda4e486b0aa7ea18fcc7f1a65b494b3ed62
gpio: pl061: returning with lock held in pl061_irq_type()

We were returning with "chip->lock" held by mistake.  It's safe to
move the return to before we take the spinlock.

Fixes: 5c472a956537 ('gpio: pl061: detail IRQ trigger handling')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-pl061.c