Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp270720pxb; Thu, 25 Feb 2021 01:57:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJyttKl+Ie2DpF9sXTsMz9xaBjk+bP7DU+nuzdI2ZHm8Dg+SeB1i8N+mNVm23p6rfdQNQRv/ X-Received: by 2002:a17:906:5d06:: with SMTP id g6mr1942912ejt.548.1614247033718; Thu, 25 Feb 2021 01:57:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614247033; cv=none; d=google.com; s=arc-20160816; b=cGIoEhmmZaLZRz4gnviJHuGFI9832G5G/hWJT43c+Af+tcskLhqjptAPfe8OAukBJU lyHnVHfzSSyvCT+9QTKY1j9ofsGdA7qBjBsF/RFuFaTkXFWYLZpkz/XCimd5b6WFWnHu 3CqQBLjSX5EtRK49yrKZ5wHNGynnSv5iFhHo9GjEUVD0d7NzDlCNB7auHibqHQsRNSxl pfi3J3zBy96lmJPDj/Rs8GoaZnQONjRybVJXP/DQuM+Sc57PR2e80FvGzhPlfd9dgxNe 4MxLRVJ+cE47rLoY6/0XWa59B4xYvG8Yv85hDzTc1yugnoRnQUsl/8NqiP5RdYxjo2Yb aJDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=bZ5pKhkblsli0y+B+qcUL1pzL+erL4DPo0/GFMbPaLo=; b=f2xTWbZBbgHBMt4a6C46tWUESG1P+3kH6QSuWp5G4Aw+PTSjfiko/GXyKdr8LZ0DHE fB9zICVbS1uAN6UIMSWERfgPIc2zKpsEq9nc7I+KX0k8ssMjAO0Jp8jpH4a3draaG0/S mdWtg4H4qFGxlPRqKlPj9v1qXbYOhWn1nNg+u7sfhxdsv9hmZJji+hgVA38fvZagwrwm nKvNHrOXZ12N3TfTT/3JyCzTRz5iyHxDtY/+PFIPcsiYMOcomtaxpNVp/ma15MmdHUt5 S+O3inIca4lLaP0wUnpCQCjEeTWlRkg+lOnI3SS4xvDw2OB8+T48MuOsSWFNDYgV01AU /1bA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cc7si2790567edb.420.2021.02.25.01.56.36; Thu, 25 Feb 2021 01:57:13 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229644AbhBYI5u (ORCPT + 99 others); Thu, 25 Feb 2021 03:57:50 -0500 Received: from out30-44.freemail.mail.aliyun.com ([115.124.30.44]:34840 "EHLO out30-44.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234102AbhBYI5p (ORCPT ); Thu, 25 Feb 2021 03:57:45 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R191e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0UPX1XpO_1614243418; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0UPX1XpO_1614243418) by smtp.aliyun-inc.com(127.0.0.1); Thu, 25 Feb 2021 16:56:59 +0800 From: Yang Li To: herbert@gondor.apana.org.au Cc: davem@davemloft.net, mpe@ellerman.id.au, benh@kernel.crashing.org, paulus@samba.org, linux-crypto@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH] crypto/nx: add missing call to of_node_put() Date: Thu, 25 Feb 2021 16:56:57 +0800 Message-Id: <1614243417-48556-1-git-send-email-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org 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 --- drivers/crypto/nx/nx-common-powernv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/crypto/nx/nx-common-powernv.c b/drivers/crypto/nx/nx-common-powernv.c index 13c65de..b43c457 100644 --- a/drivers/crypto/nx/nx-common-powernv.c +++ b/drivers/crypto/nx/nx-common-powernv.c @@ -933,6 +933,7 @@ static int __init nx_powernv_probe_vas(struct device_node *pn) NX_CT_GZIP, "ibm,p9-nx-gzip", &ct_gzip); if (ret) + of_node_put(dn); return ret; } -- 1.8.3.1