Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp913839pxf; Wed, 7 Apr 2021 14:56:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxpu6iLJ+vLmLfu60TK/4BCsmJZZaZ4KFSyHgSFjN6D0Qanzh/aGctG3nIeNblw8hurs9U X-Received: by 2002:a17:90a:668d:: with SMTP id m13mr5458171pjj.140.1617832592801; Wed, 07 Apr 2021 14:56:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617832592; cv=none; d=google.com; s=arc-20160816; b=sY0DnCIczoqvnudd7m7r6AtApCm4bb+1SSLVa3isrH0SsN6URAMMr+q20m5skDh6xl dNpmAs5e0ALoIyrV3eB33xoXv0/vEuPLoj7rlN/n6LccLUMNCStdfbdHSN8BDxwJz2X+ x1gGRm4DVQgV9fvuEFfMOrKHRE8vb4jYf9bE748+PjYTj74tzMXNlitZ48KT3vtvg9DW G9N9wGT0rB1f2+UeYuDCZALmc97AXWA7ieJ/mxd0HUEgXcynbv5rhWdDjSEuwHg9aKdJ YC1XBSalqweasoy0UQN3huEZSvuJPvQ3X+YynzwOHHRT0rryvS7fKM3GxNg/g5jumXOg hAOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:subject:cc:to :from:date:ironport-hdrordr; bh=l0fhdbt1Ep2NDVbGioKyXVrS330HI9YpNuEU3LlpXZU=; b=SDbzWEuK117ea8fIA+sZFfywIzLaU5yH2OKaxCc3KpiyKmMhYFCzmGspcaxL6gdoGM qLnYIDNmFpTi8x6jl3O9YFk7I6IyXOdMWBNsELmoI+c1TZa4aVSrphOECRe9fSc1WJ8N UodGViDvUGO+AxLE2fzRlLZ0l0nhIcqem9Iz0tkjaGIcIeI7rZZuuFLX3uB/EaxCFkk1 uNg3ZNSOYz5YLsVOyetywkM6M0vB3cnMtzoFlRnc+YMeTdBHRZMh2Y7jQX1o/8sAsUUA 2AewQL8XQ3g/XeMPst/6RuXkMKN65APyFmpBII/zLrH8aF7lhlKlNF7xvPtyHK95zlkL Huzg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l3si9136713plb.56.2021.04.07.14.56.21; Wed, 07 Apr 2021 14:56:32 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355535AbhDGTCq (ORCPT + 99 others); Wed, 7 Apr 2021 15:02:46 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:54047 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348647AbhDGTCo (ORCPT ); Wed, 7 Apr 2021 15:02:44 -0400 IronPort-HdrOrdr: =?us-ascii?q?A9a23=3Ab65nEaqqUu3gUIbyN2DEw68aV5vDL9V00zAX?= =?us-ascii?q?/kB9WHVpW+aT/vrOoN0w0xjohDENHEw6kdebN6WaBV/a/5h54Y4eVI3SOjXOkm?= =?us-ascii?q?2uMY1k8M/e0yTtcheOkdJ1+IVBV+xFCNP2BUVnlsqS2mOFOvsp3dXvys2VrMjE?= =?us-ascii?q?yXMFd21XQoFmqzx0EwOKVnBxLTM2ZqYRMZqH+45uvDCgeWsaB/7LekUteujYup?= =?us-ascii?q?nqufvdEGM7Ljsm8hTLtDWz9dfBYmel9zIfSS4K/bA57WPemRf47anLiYDE9jb5?= =?us-ascii?q?23XI55pb3PvNo+EiOOWpiswYbgrhkRypYoMJYczngBkNu+2k5Fsnl9PByi1QRv?= =?us-ascii?q?hb0H/acmGrrRaF4WCJuwoG0HPsxUSVhnHuu6XCNVAHIvFMnIdINibegnBOgPhH?= =?us-ascii?q?zKlJ02iF3qAnaC/ooSKV3bb1fiAvvlaopz4YnfQLiXtEXc8ldKZJtoAE5ipuYe?= =?us-ascii?q?Y9NRO/xoA7MfVkSPrR7OxRdjqhHgrkl1gq7tywf2g5WiyLSEgausCTzlFt7QtE?= =?us-ascii?q?5npd6swDv2sKsKkwQZlc5+jCL+BBmbxUQtUNBJgNdNspcI+YCnHtXRmJCm6ULF?= =?us-ascii?q?j9fZt3Q07wlw=3D=3D?= X-IronPort-AV: E=Sophos;i="5.82,203,1613430000"; d="scan'208";a="502073127" Received: from 173.121.68.85.rev.sfr.net (HELO hadrien) ([85.68.121.173]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Apr 2021 21:02:32 +0200 Date: Wed, 7 Apr 2021 21:02:32 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Liam Beguin , mturquette@baylibre.com, sboyd@kernel.org cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, kbuild-all@lists.01.org Subject: [PATCH] clk: fix for_each_child.cocci warnings Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: kernel test robot For_each_child_of_node should have of_node_put() before goto. Generated by: scripts/coccinelle/iterators/for_each_child.cocci CC: Liam Beguin Reported-by: kernel test robot Signed-off-by: kernel test robot Signed-off-by: Julia Lawall --- url: https://github.com/0day-ci/linux/commits/Liam-Beguin/add-support-for-the-lmk04832/20210407-085408 base: f40ddce88593482919761f74910f42f4b84c004b :::::: branch date: 9 hours ago :::::: commit date: 9 hours ago clk-lmk04832.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/clk/clk-lmk04832.c +++ b/drivers/clk/clk-lmk04832.c @@ -1159,6 +1159,7 @@ static int lmk04832_probe(struct spi_dev if (ret) { dev_err(lmk->dev, "missing reg property in child: %s\n", child->full_name); + of_node_put(child); goto err_disable_oscin; }