From patchwork Sat Mar 26 08:28:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 12792280 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B5BF2C433F5 for ; Sat, 26 Mar 2022 08:29:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From :Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=mP05iNu4vSqv9k8jtWJym+EcFu+OfToW178XdBJwMaQ=; b=U/9rm61s3vU1tj Hy2yDoezf1/UMdNf7lgaeAkQJ5WfHY7plm00ArD+u1j5WrjjJUOrjsv+vSWpUAxbhQ57yrzNzxB/4 MCa7GcBAuczjrbQosidXt6iJhnG/NrZKem5Qqn+nw1nz8Yyl+Qe2zFDZJhVivpcbs5BQe/4gL+sA4 kRpugM/K4nMLW/5Su8UH3LGlDx+sWGNVDJ6etJuq4GOpwoCHbHHPwXfx4aSjyWxDph9D3DnXm8I9C 1F98zpm0LvQL1rjnmQ1t0AKexxjX2Gxs/QObN63MaLnFdBrPPeIsGKhk3en/DFLKZC7c72nbRDG4O pAxxJnBZiOh5TuOX5PXQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nY1mY-0041G3-8I; Sat, 26 Mar 2022 08:28:22 +0000 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nY1mU-0041Eg-P0 for linux-arm-kernel@lists.infradead.org; Sat, 26 Mar 2022 08:28:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:subject:message-id:mime-version; bh=jZsPZYTJSjqtzOW+j0Wmy7pp+WHf6cgPejC+X3/CrWk=; b=uNMprU4FD0FLWRmvbBnXi40F+viF7aYGNC2EUituv88l0+8peRIJpocf Wz/FPLS2PQpHdtAA0ZMSBY1owIyJKDPAmcOPv7jdmN9XnjnUvz5VeQ621 gbmix9TeHOPAOKujhELP5FHwBAoQSv1GfGkFqqpqr13eyrKaknaHjfrag E=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=julia.lawall@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="5.90,211,1643670000"; d="scan'208";a="28278377" Received: from 203.107.68.85.rev.sfr.net (HELO hadrien) ([85.68.107.203]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2022 09:28:12 +0100 Date: Sat, 26 Mar 2022 09:28:12 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org, Rajnikant Bhojani , Michal Simek , Hyun Kwon , Shubhrajyoti Datta , Jean-Francois Dagenais , Olivier Dugas , Manish Narani , Jonathan Cameron , Lars-Peter Clausen , linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] iio: adc: fix for_each_child.cocci warnings Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220326_012819_132990_4CF24CA4 X-CRM114-Status: UNSURE ( 7.88 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: kernel test robot For_each_child_of_node should have of_node_put() before return. Generated by: scripts/coccinelle/iterators/for_each_child.cocci CC: Rajnikant Bhojani Reported-by: kernel test robot Signed-off-by: kernel test robot Signed-off-by: Julia Lawall --- tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15_LTS head: 1870e0fa79a9d58c6748c34550f3ccea0b515933 commit: d073b83d3f8f3ba83c59f7502371b1cf9eb35e92 [541/1029] iio: adc: Add Xilinx AMS driver :::::: branch date: 35 hours ago :::::: commit date: 8 weeks ago Please take the patch only if it's a positive warning. Thanks! drivers/iio/adc/xilinx-ams.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/iio/adc/xilinx-ams.c +++ b/drivers/iio/adc/xilinx-ams.c @@ -920,6 +920,7 @@ static int ams_parse_dt(struct iio_dev * ams_channels + num_channels); if (ret < 0) { kfree(ams_channels); + of_node_put(child_node); return ret; }