Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp712596pxv; Thu, 15 Jul 2021 14:11:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvo+t8aP59HtEtaJ27JjwbhZvfy73m1F70V0h2ZUYTFkZHOvtzZNrDvZLXI/wV6shYeR7P X-Received: by 2002:a17:906:c29a:: with SMTP id r26mr7792252ejz.235.1626383465903; Thu, 15 Jul 2021 14:11:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626383465; cv=none; d=google.com; s=arc-20160816; b=R9zYpDJSrF+7/vtv0YjI+bs4BtfwHtKvD4isyxD0icg7CN2XYfipfD3JolwinqDm0X aKlGmCjS+nSoU/Hv2/Qb166t5tiBaRgwxs2oM5v9DkjNelbRzo2tpWNGsQz1A2dUMYd6 /NjT3GOKSnJ3JFUD6FITSqhPCwoCuRgak/7lw2EzaURRXzGhpX2H5UCgKKcGDP98qH0R dDZmBf5QnHOOgkWjlH8hzNihTLA0s/aPOFwkB/oWbWbEi8Q9/zc40HhTEz9nUErHF7p7 cUgN1CmQAoClKZNkvkLlqFBU+7tUaz8rCDpl1qnKA2njPbrysXrlrkUM80KG1Y8pTz3e SMgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=whXiGAsQA4RGVP4FuWgxOdqUD833F1N+06o2UPXDUbw=; b=rF1vXMhN21hI6mjL9n36SKTMWAbKD6vvmKy+w6nWIkjT6WcfLv5Mj245IJvJHNc2Z9 1hjKmBACn6Pq656vR/CLlmcMFEPrdZqdnznZfSyALb/hiPYNVder3zn27yRw4QFpKeZl vP0i7TFPk9n5wQDSCSy1eVKh9eQvtC8bIAKfsOXqVwLoNpI/TbSBLfmdyukQbhbRXvb8 xW/OkvrxubhU8KCJ6kGmUsLPDGnf9wBtEJ+L0VklpULEwrmFPOzDTGoOk1y9IF8ddBY8 SIHRS8Z3PpiBa/Gb2O0SBfNK0trfj4P1fnl1DVnN2sGltrjWFisHM3XVJ5nOBhnydcjb 0P9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JoMb9eb2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oz13si4556289ejc.690.2021.07.15.14.10.42; Thu, 15 Jul 2021 14:11:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JoMb9eb2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242265AbhGOTXv (ORCPT + 99 others); Thu, 15 Jul 2021 15:23:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:46432 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242378AbhGOTGy (ORCPT ); Thu, 15 Jul 2021 15:06:54 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9DD1A610C7; Thu, 15 Jul 2021 19:03:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375790; bh=6dYphgOo2THbfEUnJoMnC1dpOKDYDO6E0Xo8s0leiS8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JoMb9eb2yW1mUFMC85LU+t9lCYyOJoKnh82b5VYtWpBOwX7SPhxxz3cAzplqGOklA QFx2vT4KEWMucU0F7YoYkjbykJllS/LBU4WpMMyMb0KaySYCnOMvU+E6TjUp3xOxwl fBDjedkINd25bamft7FEAJLzrQ9wGm/raY75Tpf4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , Zou Wei , Linus Walleij Subject: [PATCH 5.12 236/242] pinctrl: mcp23s08: Fix missing unlock on error in mcp23s08_irq() Date: Thu, 15 Jul 2021 20:39:58 +0200 Message-Id: <20210715182634.410790697@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182551.731989182@linuxfoundation.org> References: <20210715182551.731989182@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zou Wei 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 Signed-off-by: Zou Wei Link: https://lore.kernel.org/r/1623134048-56051-1-git-send-email-zou_wei@huawei.com Signed-off-by: Linus Walleij Signed-off-by: Greg Kroah-Hartman --- 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))