Skip to content

Commit f190ca9

Browse files
Zou Weigregkh
authored andcommitted
pinctrl: mcp23s08: Fix missing unlock on error in mcp23s08_irq()
commit 884af72 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: 897120d ("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>
1 parent f176dec commit f190ca9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/pinctrl/pinctrl-mcp23s08.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ static irqreturn_t mcp23s08_irq(int irq, void *data)
461461

462462
if (intf == 0) {
463463
/* There is no interrupt pending */
464-
return IRQ_HANDLED;
464+
goto unlock;
465465
}
466466

467467
if (mcp_read(mcp, MCP_INTCAP, &intcap))

0 commit comments

Comments
 (0)