From mboxrd@z Thu Jan 1 00:00:00 1970 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 8177DC433EF for ; Sun, 27 Mar 2022 13:32:18 +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:References:In-Reply-To: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ENJkFpWl+smcMZXBSTVSa5owJbYiNRb2TqqPBXbhCEg=; b=geZQX8xO2yn3fT yhzNdJOpUajlJ0/tw8q6Wb4QC1FChsY+V6/e32iDKnJbhFbto/lMfcWXLubRAmTj9yNj60vhcTtj6 s8Yl2f6JLbqlgr/tTk9gcUaQavQ6fmI/A0NHTyX23AO+CmuzAkURxJ+KipdQ9a156dDh5CpWAH7EC /Wl1rSXNMbY64twwD5KraggHGXnpgwZjYs+zPmFHfTcje5d6bI7lscsA05w9n8cXZbTOWBuqU6nbp hYHnkxm5d80W+zPwzubdqdWNFaJpiOBUYjbTvPjKrQO6ACM8u/ILhaB7XapeU5BYHaiHNfSB3rIRj AVQrOeKHI0zKMNl0QN8g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nYSyw-005aJJ-JD; Sun, 27 Mar 2022 13:30:58 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nYSyt-005aIo-Ll for linux-arm-kernel@lists.infradead.org; Sun, 27 Mar 2022 13:30:57 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 52B836100C; Sun, 27 Mar 2022 13:30:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 37216C340EC; Sun, 27 Mar 2022 13:30:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648387853; bh=iueUggcwK5JXu0x796gR3JLrqk4cfY0hnskSijVeJq8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=dnvA2DQoQrE+adwpFzDFcsa8J6t7KSAFALrYXxSI9Xqb6YDqryhs+3Lj5BKmB9Iyf cbvH+r9lmhNlytkB400sZmPb/BUC3vZV1Tl0WGFOmlj791IyN5ziLhV/Yd6gGb14bP tNioc4z5GHDqayNDpZuvz2gHzA/jcqX9wOduACGGOhlaegeOK9yEZ6YgcUPmS3djpT ojbA66qUs4TtVh95ZDCJCb2wwLP11RmqZs2X64ysQZVZdVeM5puYoNV6eJ+cXbVJFN PzH9Eu/4cVzCaWA03gOcgM3ywuE1RgwyGOzGJ80AYajB8JNB1CykR1m20IbcqHJIVF urQxpn2Zy+KYQ== Date: Sun, 27 Mar 2022 14:38:20 +0100 From: Jonathan Cameron To: Julia Lawall Cc: 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 , Lars-Peter Clausen , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] iio: adc: fix for_each_child.cocci warnings Message-ID: <20220327143820.45fc1d6d@jic23-huawei> In-Reply-To: References: X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220327_063055_811846_3B30CD7D X-CRM114-Status: GOOD ( 17.30 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sat, 26 Mar 2022 09:28:12 +0100 (CET) Julia Lawall wrote: > 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 The upstream version (in IIO for now, but I'd imagine will hit Linus' tree in next few days) of this looks rather different (no dt code an more) so I suspect this fix is for a now dead branch... Jonathan > --- > > 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; > } > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel