Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4615900pxj; Wed, 12 May 2021 09:18:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmjhFzNUtHbgxyLRDzwuxU0jToS6PGiBJxzIGysaS786brvrdsJ+M0CK2Ssla1L3yDyRzn X-Received: by 2002:aa7:dbc9:: with SMTP id v9mr44105386edt.183.1620836294373; Wed, 12 May 2021 09:18:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620836294; cv=none; d=google.com; s=arc-20160816; b=w7HGeDcIcDd7DVUSc3+VOS0bW4B2XfmTYC7W2ZtBNDO+nc9eDeCRBSZTlp7gKUxgkt Ph140hzzip0iuS0ZzuKxjsJ235+FIyjnonlYS0tNhuxYt3viiFmU9g3Ca8BLCZk4NdS3 /g2jTlP4rJpgzAsro/F5/3Z6mx33qzqojrBfX6rHgAXz+f+PbAAboCEuKqvlYegWpgQu Ivfs0TsrAthe1GgsieiEH0XH66d853LzwxnWOYszFJbfwFhAh+bQX0LW4rJJ5Gd4nEhm LZHj3TVyDWfOeMZfn6n5dnHvGPGBRtX682h2Rdwo6UuLzi2qWQN1MHbZI9OtQMl2It2q uKig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=6a1g8CMGzfQTcVHdHtUd0eaelTtPVAxAIHJ7k0XDnMQ=; b=oksC68PrjfHZ6CKWZwbMBSDD2LWYQVi16JFAm3eRRySbOaePqnO2wvrNDyGGvkGol2 FDeXSENi1vBpzD2sujFcBjboRY0Nkth4Yqx5cpcKNQoUF8E5Ufzo/aJgEBHGdXertHik 1zogJrIXQS73mZ5LfRWdaKVw1bIcSZIpnORWKfKmxZMQy5sgtGXX23KWQMFA+V3z0pz9 omtDmQe+jrdE2FmiCnJDXdgTccwOkojIZFAQ68E6vcF3R5ZEy0aLIG1tVa17l+c1byPe NLCLA7gS4I4yah1oFNJZrjboVAOs1QsJhuSJN3J4KZJdNJCiI52RrWsYrqFS7ozZOKgB YkGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bE13xMkP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jg39si240714ejc.63.2021.05.12.09.17.50; Wed, 12 May 2021 09:18:14 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bE13xMkP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234018AbhELQN7 (ORCPT + 99 others); Wed, 12 May 2021 12:13:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:44544 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233495AbhELPbM (ORCPT ); Wed, 12 May 2021 11:31:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F16606197B; Wed, 12 May 2021 15:16:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620832569; bh=hKZ8eGDkIy4gTLISsnL/UFnppdQ/1yKa6gjy0lBe3Y8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bE13xMkPROFKy+XMw0IuSpYHqMzNJPPIKn++YHpUM11t/h6l1PSv08DLIWZeviGo9 UkXg06QhPkQlmwN0KNVjnpRK/C3k5kwoXcy3oy95rAvrMEBGXCCwBCSYZmjP1fIeS4 HrhciVkRtJs31rP0kMoZRyLz8/rk4HXOa/ymcqno= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sumera Priyadarsini , kernel test robot , Julia Lawall , Frank Rowand , Rob Herring , Sasha Levin Subject: [PATCH 5.10 300/530] of: overlay: fix for_each_child.cocci warnings Date: Wed, 12 May 2021 16:46:50 +0200 Message-Id: <20210512144829.660055389@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: kernel test robot [ Upstream commit c4d74f0f978ed5ceee62cd3f6708081042e582a1 ] Function "for_each_child_of_node" should have of_node_put() before goto. Generated by: scripts/coccinelle/iterators/for_each_child.cocci Fixes: 82c2d81361ec ("coccinelle: iterators: Add for_each_child.cocci script") CC: Sumera Priyadarsini Reported-by: kernel test robot Signed-off-by: kernel test robot Signed-off-by: Julia Lawall Reviewed-by: Frank Rowand Tested-by: Frank Rowand Link: https://lore.kernel.org/r/alpine.DEB.2.22.394.2103221918450.2918@hadrien Signed-off-by: Rob Herring Signed-off-by: Sasha Levin --- drivers/of/overlay.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/of/overlay.c b/drivers/of/overlay.c index 50bbe0edf538..43a77d720008 100644 --- a/drivers/of/overlay.c +++ b/drivers/of/overlay.c @@ -796,6 +796,7 @@ static int init_overlay_changeset(struct overlay_changeset *ovcs, if (!fragment->target) { of_node_put(fragment->overlay); ret = -EINVAL; + of_node_put(node); goto err_free_fragments; } -- 2.30.2