Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp663906pxv; Thu, 15 Jul 2021 12:51:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbrBgqsHn8bAogZ+ZApS2tBs9N/a4fo4ZdHkKMRe17aCKioDX7OMyBerCAmAxtCrf66lGk X-Received: by 2002:a17:906:4ad2:: with SMTP id u18mr7194631ejt.549.1626378682189; Thu, 15 Jul 2021 12:51:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626378682; cv=none; d=google.com; s=arc-20160816; b=n5ho8hq0bzcTcFXuvOYNEGoKHhKry5ZCV+ShjKxVGMpjtT+oCmF4dE/4Atw5ODqLIC u2SgYUE4kB8cYz0ZkcBAkPi71LpZfFWYMqKqHqKuDQMaHOIcajpfuaSWjTmlaGdMsK6X qPjhYIQ2QTnrcNzToi0tROjHAbndzfDHwSKiSwyF+D8zdRYyHDdnUWGtivT91FNUcm5h JXARwfJdsDV2i1ZzrOkDNEFiOkVmqKT4kUE7UdBWSWPIa6jW3OTe4XYd7m1gwKOhg+T1 0UotLqyzvfleC/PyM9lR52R/hz1LoRaTiFBoDGr9OnYRZwy4xruIk/KXJFmDE0f0kjBK GBbw== 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=Tlg+mhv/oPQF/mn/m/ILGm6pKulYQ386mh6Dy0kEi4VMO6wMUp9NPED1cbEKHmHj2w VvOErnXbYU57I3mcGMt7OxFNI2fLUalO6q61lme87/V/Exmop+kzGz8SvTRPKTbjvvYf +yQ6H5cCquzBJMSYwansxHrjrbx1fLudoid+XzkOhXQ5qTcfRz87bs0prAhLTGmAFkrt +UMTr5tr4XhjPG/XSc30bxC6Tr958EDWuTut/y8N1Wxz1e1dB4QmP4ATJjzSYGqu78AB 45/1gIJmG6ABFRdRp/b7AMjYOQp//YSOgicPmQ2t2SkNQCbxDqrut6qbaiwMsST+f/JA 485w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1wQq9baZ; 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 k9si10215450eje.496.2021.07.15.12.50.59; Thu, 15 Jul 2021 12:51:22 -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=1wQq9baZ; 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 S239611AbhGOTwx (ORCPT + 99 others); Thu, 15 Jul 2021 15:52:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:59026 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244308AbhGOTSM (ORCPT ); Thu, 15 Jul 2021 15:18:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 483CD613E7; Thu, 15 Jul 2021 19:13:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626376409; bh=6dYphgOo2THbfEUnJoMnC1dpOKDYDO6E0Xo8s0leiS8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1wQq9baZUpqO0agj1mvnXsbcVn/xGa7ByJhwVxD3DSWke3VFejkGY14/KHA8qpWQB aZVAXkPpaHPvlylToZ0lPWkSuusOA7XUXJwhckMRLa/bxQ0iU8xuz+K1b3V+sCQH5U 6821JlCSBXRIby4S6aYxWlm7QAfDw+sdINkHLQcc= 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.13 260/266] pinctrl: mcp23s08: Fix missing unlock on error in mcp23s08_irq() Date: Thu, 15 Jul 2021 20:40:15 +0200 Message-Id: <20210715182653.081207078@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182613.933608881@linuxfoundation.org> References: <20210715182613.933608881@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))