Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3841943pxj; Mon, 7 Jun 2021 23:18:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMCbQS6Doqau7SZv8DL18Wr5wb4++2LxLefVdQmyhZpDSVuwnd/Uuk/0JISxP+4x5tbR+z X-Received: by 2002:a17:907:693:: with SMTP id wn19mr22156952ejb.74.1623133123580; Mon, 07 Jun 2021 23:18:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623133123; cv=none; d=google.com; s=arc-20160816; b=QERa4WgHw5LbvJVxae0bdz6/P/2YrKvYhgpGtY43fi/xc/eae4Hv4dDQJoaCmCxzRe sFbVlWkk9Rje+L2s78t62hDffVXHSPAmuNjqbPLBxzooWMopi0p4WmS6cHMuuOCkXdul /k0SM2qOcF57bdV28gHvSXzwiB+eQeWNteZU/j2lmfXKBLuIYHURcdAg7fEVWboFKX8t 8C4d7WW1JuzNHD8RNMYoyJnloX+up5xw9hIu0aX4IRMN24QGV0Sgqh8DzRornj67GdZx SDui5ZxUTzwUEvz9ihUVtFQmqWofEqeTZWl04vkE22R7zYM1Fppr+YQrrLPL4xtR4pan wIIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=Fm+ZlTC0wYxH4lOLzJETCSt8PtNNXUhcGgmA2+mCDEI=; b=QtHRdy0O3ic+l7/EapJ6WY/mSK2sXhbus0KUoRLf33ffP1GaLNNQ1UsAigQJr8UlxE IM/BoAqGysD8VWgdaHzn+rFQhrqDMjzxTOVklIVJb4nE41d/OJoeOhERB5X6C0NKRGSf hTH07woPVaQjdabGDrPpD4t68jEq96XMtpdEQLa2Ap7Nil50reqF87M/N2lCHp5KqYhO 5rvYs6a3v9/j7Yf+5EOqbvVKr9wX6zwCNPT0IemNqReigFxLqspAnBqR8CtCcAptHZpU OfsGym4YnC44wboJFnRfJs1kLDRgxdxMVMwnv2KYWXHnXVN0fEbtx6gBDk6qOlsEcrD1 Y8mg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e17si14610390edq.196.2021.06.07.23.18.20; Mon, 07 Jun 2021 23:18:43 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229937AbhFHGSW (ORCPT + 99 others); Tue, 8 Jun 2021 02:18:22 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:5281 "EHLO szxga08-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229507AbhFHGSW (ORCPT ); Tue, 8 Jun 2021 02:18:22 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4FzfyL0Jhdz1BK2j; Tue, 8 Jun 2021 14:11:38 +0800 (CST) Received: from dggemi762-chm.china.huawei.com (10.1.198.148) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Tue, 8 Jun 2021 14:16:28 +0800 Received: from linux-lmwb.huawei.com (10.175.103.112) by dggemi762-chm.china.huawei.com (10.1.198.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Tue, 8 Jun 2021 14:16:27 +0800 From: Zou Wei To: , CC: , , Zou Wei Subject: [PATCH -next v2] pinctrl: mcp23s08: Fix missing unlock on error in mcp23s08_irq() Date: Tue, 8 Jun 2021 14:34:08 +0800 Message-ID: <1623134048-56051-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggemi762-chm.china.huawei.com (10.1.198.148) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/pinctrl/pinctrl-mcp23s08.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-mcp23s08.c b/drivers/pinctrl/pinctrl-mcp23s08.c index 799d596..d025957 100644 --- a/drivers/pinctrl/pinctrl-mcp23s08.c +++ b/drivers/pinctrl/pinctrl-mcp23s08.c @@ -353,7 +353,7 @@ static irqreturn_t mcp23s08_irq(int irq, void *data) if (intf == 0) { /* There is no interrupt pending */ - return IRQ_HANDLED; + goto unlock; } if (mcp_read(mcp, MCP_INTCAP, &intcap)) -- 2.6.2