]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pinctrl: mcp23s08: Fix missing unlock on error in mcp23s08_irq()
authorZou Wei <zou_wei@huawei.com>
Tue, 8 Jun 2021 06:34:08 +0000 (14:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jul 2021 06:53:18 +0000 (08:53 +0200)
commitf190ca9068e31f9cb27d5d7ee95535ad28b7d64d
tree02553d09bfa0a80824455c1f353dd9293483b325
parentf176dec999c8cc0489a30de1ec38d69a9826012d
pinctrl: mcp23s08: Fix missing unlock on error in mcp23s08_irq()

commit 884af72c90016cfccd5717439c86b48702cbf184 upstream.

Add the missing unlock before return from function mcp23s08_irq()
in the error handling case.

v1-->v2:
   remove the "return IRQ_HANDLED" line

Fixes: 897120d41e7a ("pinctrl: mcp23s08: fix race condition in irq handler")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Link: https://lore.kernel.org/r/1623134048-56051-1-git-send-email-zou_wei@huawei.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pinctrl/pinctrl-mcp23s08.c