Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3759339pxj; Mon, 7 Jun 2021 20:25:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyi+asQcO6VS3rsnmjmHnZtE3VyrVBuJ+Zh4B5KGTtOWMVgYmhl+oQrfyhmiNco5eVaoDc6 X-Received: by 2002:aa7:d5cf:: with SMTP id d15mr23403538eds.342.1623122723716; Mon, 07 Jun 2021 20:25:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623122723; cv=none; d=google.com; s=arc-20160816; b=JV27cMBaTGzEi3K1M5fILEC0qvLtXREC4TVzGVFRgF1zM1spVFezPUdaIdcjhNqi4c fMqcv3rdcRFvl3gNCeRkYSzHAJ8O8iN+7YeJYuLqoUqNmmpacX1O8M/cnb4YKrOSq4kX 4R1+XVZJ5GiJanLoDVCNpeSHF1ipygCpE02lWZcjo3WI4I+6bnuX57oF/pumS8VrI7mi AH6bOF2zP6MTCp1S0r9roEw9mSnXKg6th7Wyt53ji9PQpwyW/AZAs7/cXgjxhtNuWFga KDz+wGU4TtLMiWns0TA2eYagtZRmyuHVcZL5sj3fmDlHIv853dH18fjavPgTIhBnG9Ol jCpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=u9f/ERk78Qed1ZNrv9P2ZWN5vf6haJg67L8peg/agWA=; b=DqmYPA7NxWxhf4B4zCXctvKoJo9j0bz7BGgacHRzWjYmyzmtl+RI/gquSKLh7DEinc uRi/SKfaPDlTrO4HfqyshiWEDdFLIC1/BU4jEbCMwUhbH7usEt4xsk1EeruJmUusHYZC Bn9obqrtj+bAylQBlvK7VsJMRupMdp8DkHXyfmh0i94N9ZQ/iRpwCtrr7mFNurVN11W5 GIXZlbhnpY3y3G4A57JnhPwG9IQIf4Z5b9rtUzrVNaDAWy8cZ1exV7Rbmq7sV0jrnUDR BohyTd/rNkcTzJPTxucfUb7i3uPKSnYL/BCK2xycUUt6U4oGew5JfetcoeY60Fb+kES4 IFlg== 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 d14si14415079edp.279.2021.06.07.20.25.00; Mon, 07 Jun 2021 20:25:23 -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 S230361AbhFHDYC (ORCPT + 99 others); Mon, 7 Jun 2021 23:24:02 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:5278 "EHLO szxga08-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230266AbhFHDYB (ORCPT ); Mon, 7 Jun 2021 23:24:01 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.53]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4Fzb583MTmz1BKkY; Tue, 8 Jun 2021 11:17:16 +0800 (CST) Received: from dggemi762-chm.china.huawei.com (10.1.198.148) by dggemv703-chm.china.huawei.com (10.3.19.46) 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 11:22:05 +0800 Received: from [10.174.178.208] (10.174.178.208) 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 11:22:05 +0800 Subject: Re: [PATCH -next] pinctrl: mcp23s08: Fix missing unlock on error in mcp23s08_irq() To: , CC: , References: <1623069869-39309-1-git-send-email-zou_wei@huawei.com> From: Samuel Zou Message-ID: Date: Tue, 8 Jun 2021 11:22:04 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <1623069869-39309-1-git-send-email-zou_wei@huawei.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.178.208] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) 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 On 2021/6/7 20:44, Zou Wei wrote: > Add the missing unlock before return from function mcp23s08_irq() > in the error handling case. > > Fixes: 897120d41e7a ("pinctrl: mcp23s08: fix race condition in irq handler") > Reported-by: Hulk Robot > Signed-off-by: Zou Wei > --- > drivers/pinctrl/pinctrl-mcp23s08.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/pinctrl/pinctrl-mcp23s08.c b/drivers/pinctrl/pinctrl-mcp23s08.c > index 799d596..e12aa09 100644 > --- a/drivers/pinctrl/pinctrl-mcp23s08.c > +++ b/drivers/pinctrl/pinctrl-mcp23s08.c > @@ -353,6 +353,7 @@ static irqreturn_t mcp23s08_irq(int irq, void *data) > > if (intf == 0) { > /* There is no interrupt pending */ > + goto unlock; > return IRQ_HANDLED; One mistake here is to forget to delete the "return IRQ_HANDLED" line, please ignore this patch, I will send v2 later. > } > >