Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1259456pxb; Thu, 4 Mar 2021 07:14:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJzO9Hwiqpou4qIbAcUmhnOnbRrxeiGpiVvWYOoNdbTAHr01bF7UcIosENhmwJpdnyegP4z5 X-Received: by 2002:a17:906:a44f:: with SMTP id cb15mr4671274ejb.420.1614870894928; Thu, 04 Mar 2021 07:14:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614870894; cv=none; d=google.com; s=arc-20160816; b=qpZ2lHD0fkZCRzyyK+TcYVeU6j02rcG6uHqZT4gaprbShF8UFNp0a9QPabNyjglPb9 YNtitmtdOASMASl17vd3XJvGVEX6NPsYg8ceHJaidSHgYs48aGPtj3IghAjCqXM3nDmD FVCR06VwunMKz816/1AhAmNVuWFZAS96ZbaLymNU+kFIB689b22Q3lqdqPn4QlXz5IW9 MfquIlEviGEzj+WYaB10ITk7TaD93JmHdhwDGnJwCoA0COviu48StHbxtb4UAYG9tIBT UyJat/1aaTISTCgs8HfgO8dWbIDtZ5PfBUs6XUvZzJw0azhSHXcHxM8mQVvQ1JuLSY0n cedw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Im0mIVO6Ff5whF1fQf3afIUs3Xm3pgxbdz5pqLB8RWs=; b=YaK4WFW/77bHgJzAWhliQorCZY6PvV3YHZqfQvi6ZHfABiyE9DsRvBex5AO/n8NDGa dxHLFLEg0rQYCZ/zGSdQrRQHQUGY5+lTQ63MqYHIui24KbMGdZTHzBupSurz7hYUn6hn UA6NUsF1e+u7SXD24ZskTkkNC313sXnrXKMvn1lm6TykbIR9FuFWqlewO8Qa0mP3neNw 3+EOBX0ne1cxd12Bi4Uacw9KMFzpfnGsFHf3PzNliRGxPyjhgMPbhtYywvNsaIUeHVgi o470JCpphNKUj2i2YlvCP2ACx3GW2lL81+ZDZUi+zTJnfSVPah4Joh/DDcUdxvWaU797 ddgg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y8si18148540edw.351.2021.03.04.07.14.31; Thu, 04 Mar 2021 07:14:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235682AbhCDGqY (ORCPT + 99 others); Thu, 4 Mar 2021 01:46:24 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:52750 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235670AbhCDGp7 (ORCPT ); Thu, 4 Mar 2021 01:45:59 -0500 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1lHhjK-0007gu-UT; Thu, 04 Mar 2021 17:45:04 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Thu, 04 Mar 2021 17:45:02 +1100 Date: Thu, 4 Mar 2021 17:45:02 +1100 From: Herbert Xu To: Yang Li Cc: mpe@ellerman.id.au, davem@davemloft.net, benh@kernel.crashing.org, paulus@samba.org, linux-crypto@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] crypto/nx: add missing call to of_node_put() Message-ID: <20210304064502.GM15863@gondor.apana.org.au> References: <1614302586-15095-1-git-send-email-yang.lee@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1614302586-15095-1-git-send-email-yang.lee@linux.alibaba.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, Feb 26, 2021 at 09:23:06AM +0800, Yang Li wrote: > In one of the error paths of the for_each_child_of_node() loop, > add missing call to of_node_put(). > > Fix the following coccicheck warning: > ./drivers/crypto/nx/nx-common-powernv.c:927:1-23: WARNING: Function > "for_each_child_of_node" should have of_node_put() before return around > line 936. > > Reported-by: Abaci Robot > Signed-off-by: Yang Li > --- > > Changes in v2: > -add braces for if > > drivers/crypto/nx/nx-common-powernv.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt