Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1893476ybi; Wed, 17 Jul 2019 23:54:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqyqmVmD8PWUKVYrS87CeG5bTKdzun/AOzMeThavtVmMjIjeMTM3psmNMj/sYFcraqlDkX3P X-Received: by 2002:a17:902:aa88:: with SMTP id d8mr45858050plr.274.1563432860336; Wed, 17 Jul 2019 23:54:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563432860; cv=none; d=google.com; s=arc-20160816; b=nJDSkzxtM58TeR09awzM8YP3tREVv8Yat50eTcsRMhQw1YhYCvKSql4mnuv/ioU9G7 hkQhezuNjDx4FSgj4vu1NQcnedPlBPrOj8U4PAhhmRmOPc0u6taeFGi4cBX3pmUhiXVe uVYRL1G+61CvBoKxVdYJgBz6LY1NKugJ3EYZ6G5DnCxyUZbkmOcBMCEQATxTIw47xjwj LpSh1s0f60nqq7mA8eGgoQRvW8zTvjPFmo9Opj+oqqduJpXJAwWjjxSTqlg9yypaVaOm OTKD1xqLxciEXNwl+GsHZcQHQMewWPLW18E+JOjvgpt5KVh5UcLTgVBLQGM20odwR3du 30Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:to:subject; bh=5nQ7DoFRs17+e0l7Diz1/nB7UltrV+17151uk+wxTHQ=; b=Xh1adfKZzjEY1Me1tLYf40V79zFlsiDJDYQRJGawWX/4A6LI6TaScZr1DuiAP8z5mg sG8M2TPVgBfEpVKYOb38FH7BN+HoKWa/RtxmeKJeQviw9Xyc77u4shWUB9LAwjA0DkQj nPm7qebjaQg7jnxDDO47OmXoHt4DGIG44WFohCJrlrspFo1L/Wgdqfz/oVGadze5vfjL YYSfpu/8tIAuNzI5B30UxlkzuhnGH4jkMe2UFBGsJHEbISM+lGMupNGd4HKFpK1Ced4w oRg3Hzx1/Ym0uikgSUpZwZW2gAPi1TF/et2Mt1XZXew6rEHM5kx0bJ/8M1jRkE1Ivzo0 Zvbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t2si668669pgq.488.2019.07.17.23.54.04; Wed, 17 Jul 2019 23:54:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389248AbfGRGxS (ORCPT + 99 others); Thu, 18 Jul 2019 02:53:18 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2677 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726383AbfGRGxS (ORCPT ); Thu, 18 Jul 2019 02:53:18 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id A8A62B24A39F3EB1B51D; Thu, 18 Jul 2019 14:53:14 +0800 (CST) Received: from [127.0.0.1] (10.133.213.239) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.439.0; Thu, 18 Jul 2019 14:53:13 +0800 Subject: Re: [PATCH] net: dsa: sja1105: Release lock in error case To: Hariprasad Kelam , Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S. Miller" , , References: <20190718022110.GA19222@hari-Inspiron-1545> From: Yuehaibing Message-ID: <8962909e-94a6-8005-bd4c-05c556ac4242@huawei.com> Date: Thu, 18 Jul 2019 14:53:12 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20190718022110.GA19222@hari-Inspiron-1545> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org https://patchwork.ozlabs.org/patch/1133135/ This has been fixed. On 2019/7/18 10:21, Hariprasad Kelam wrote: > This patch adds release of unlock in fail case. > > Issue identified by coccicheck > > Signed-off-by: Hariprasad Kelam > --- > net/dsa/tag_sja1105.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/net/dsa/tag_sja1105.c b/net/dsa/tag_sja1105.c > index 1d96c9d..26363d7 100644 > --- a/net/dsa/tag_sja1105.c > +++ b/net/dsa/tag_sja1105.c > @@ -216,6 +216,7 @@ static struct sk_buff > if (!skb) { > dev_err_ratelimited(dp->ds->dev, > "Failed to copy stampable skb\n"); > + spin_unlock(&sp->data->meta_lock); > return NULL; > } > sja1105_transfer_meta(skb, meta); >