Patch "pinctrl: mcp23s08: Fix missing unlock on error in mcp23s08_irq()" has been added to the 5.12-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    pinctrl: mcp23s08: Fix missing unlock on error in mcp23s08_irq()

to the 5.12-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     pinctrl-mcp23s08-fix-missing-unlock-on-error-in-mcp23s08_irq.patch
and it can be found in the queue-5.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From 884af72c90016cfccd5717439c86b48702cbf184 Mon Sep 17 00:00:00 2001
From: Zou Wei <zou_wei@xxxxxxxxxx>
Date: Tue, 8 Jun 2021 14:34:08 +0800
Subject: pinctrl: mcp23s08: Fix missing unlock on error in mcp23s08_irq()

From: Zou Wei <zou_wei@xxxxxxxxxx>

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@xxxxxxxxxx>
Signed-off-by: Zou Wei <zou_wei@xxxxxxxxxx>
Link: https://lore.kernel.org/r/1623134048-56051-1-git-send-email-zou_wei@xxxxxxxxxx
Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 drivers/pinctrl/pinctrl-mcp23s08.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/pinctrl/pinctrl-mcp23s08.c
+++ b/drivers/pinctrl/pinctrl-mcp23s08.c
@@ -353,7 +353,7 @@ static irqreturn_t mcp23s08_irq(int irq,
 
 	if (intf == 0) {
 		/* There is no interrupt pending */
-		return IRQ_HANDLED;
+		goto unlock;
 	}
 
 	if (mcp_read(mcp, MCP_INTCAP, &intcap))


Patches currently in stable-queue which might be from zou_wei@xxxxxxxxxx are

queue-5.12/pinctrl-mcp23s08-fix-missing-unlock-on-error-in-mcp23s08_irq.patch
queue-5.12/misdn-fix-possible-use-after-free-in-hfc_cleanup.patch
queue-5.12/drm-bridge-lt9611-add-missing-module_device_table.patch
queue-5.12/atm-nicstar-fix-possible-use-after-free-in-nicstar_c.patch
queue-5.12/atm-iphase-fix-possible-use-after-free-in-ia_module_.patch
queue-5.12/drm-vc4-hdmi-fix-pm-reference-leak-in-vc4_hdmi_encod.patch
queue-5.12/drm-bridge-cdns-fix-pm-reference-leak-in-cdns_dsi_tr.patch
queue-5.12/cw1200-add-missing-module_device_table.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux