Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp189910imm; Thu, 4 Oct 2018 21:17:21 -0700 (PDT) X-Google-Smtp-Source: ACcGV61ey8Q80K6MD3r60JrWcuMcKFXJJu5lC3th0ykg+pjfUDUjgsdhpPiEtQETrxxlXuQVODCF X-Received: by 2002:a63:af5b:: with SMTP id s27-v6mr8389674pgo.448.1538713041574; Thu, 04 Oct 2018 21:17:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538713041; cv=none; d=google.com; s=arc-20160816; b=ymTihyVEkYcmwOyuIxN7KZaXIqHFU/336dA3T5ef+dmr4pvQ8DpuQY7pgw5W6vE1CO UK5oOf59+z2nPBo6nykBIc4rBW7jaGuAPcqIzd+OfioLt7b36DCer1eVZzb1mMFolZgm 6h+axDHmHGGBTxi+isVORq6TXpunUvaZKUAGn2l+5G2Eq6pQUKQXzk7iNcIJybDM7B5p h+OW0Jji1E9bgx3SUFdpbeIpD021+Us3I8JsCxSG9c2fHJB4BcpGmRjHuMfrqdL/Eugj PvcnApASE+nEhw34plPHxw3P75ddrbUbReh1RFimcXBPwyAH9T1xgmpotAdLpr6Hdu0a Tt3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=TSvuFcg8dSVKckHCq64beWOdH/WxX+9HQwnn/E0dljs=; b=RHPQIsT0q0uR4/NkTh81tVhm3IJXz0/lMgzloqLuKehqI9D0KE4d7iLV1w4Cwy0B+b PrM/qZbdLWUrqxyZ/CpzAZiTDQzquknjEKKWH0rKs92Y/ox3E3BkcAydyyE2IH4De42p EU4VbU799QwsQsnCkd0ZSAqQLOPOXO4/fvDHSm5LPckl26Z8Z6rZEn5ec9FxDm9Rh0+T +L15ibQn/JiQuQURRGHO0HdJcajlsqgGMbY6Q7bb9QNVIlukgKVc868sJBZwW+0c3021 N3ilq294o4h3Z3ojOg8f8l/ZSCXxExVmHRfkv2Q2dJhWdxWF10ZGyl/Jp9sFOS4icxX8 DZnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Txvvydwn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u81-v6si142762pfi.175.2018.10.04.21.17.06; Thu, 04 Oct 2018 21:17:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Txvvydwn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727758AbeJELLL (ORCPT + 99 others); Fri, 5 Oct 2018 07:11:11 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:37729 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727599AbeJELLK (ORCPT ); Fri, 5 Oct 2018 07:11:10 -0400 Received: by mail-pg1-f193.google.com with SMTP id c10-v6so4139188pgq.4; Thu, 04 Oct 2018 21:14:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=TSvuFcg8dSVKckHCq64beWOdH/WxX+9HQwnn/E0dljs=; b=Txvvydwn/k63hOxYlZwYdwaQIAjsth2Jaw4zbDNdTvqPzUBK/bEWuzmAxECzPr/rYB 5ee7eBaNw1FbEYKkJ4M/WHi1t1nNCDk5vVrtbTuzDmVpBWywMHZMCbtMkyDjKD+IEShv Fshm8YpT/NObVTDG3rnXVe9X1gblxeezdCDtpJNZ6XLbQc01eR7O2FLjyBGIcN4G6a+V WHIFJ4Mp/4B0eZ2NxalIRlvpGQaQx8112Pd0FQJX3TymYYILDXlRQ1T4QgysP/e8XVsX dikNHoa/BUjMAwOGD35MjuM2ynoK/ZjKzfpqn+GqHfMZZUmhddS/DuBQPxc4FUro5AW8 rA3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=TSvuFcg8dSVKckHCq64beWOdH/WxX+9HQwnn/E0dljs=; b=SuZgAzny+5lna4E2tbMo68bcvWM6rMw4s+n5tBBOOH/4t7VQjjmE/2ajjpdyS7tsYw IA07TR8bFLGT+RCir4Fb9FEOaeyKAyO6N8zwfx6xSd6ehRgiOAOJA6XgTkp58nUBdtum l6l1LxSyRxzHzMrNevZhiasCwu1IMh2QoNs+bSgOpp+QVGYfpKHayjAbiPUd60CK4/5x ZXFt6MtBEptInqFPEQG/gAVSvZrIV4sijoQvYd2oPieeUQBc863jQFH4LcfqiRhRNjsD TU0qL7UZZJPk9T+rc8FiC80HM1yIzJqme7EQ/nBvHg+ygn52bOl8NlDKuFbAgPf4Fk+c wAxA== X-Gm-Message-State: ABuFfogUqeeLfEgJOWHAHoHOgPj6m6JuCFu9K7c9iM+sMAselSgIV1uv mS10ci9Le9BVqad9G2Z2KI0= X-Received: by 2002:a63:eb07:: with SMTP id t7-v6mr8409158pgh.441.1538712859586; Thu, 04 Oct 2018 21:14:19 -0700 (PDT) Received: from localhost.localdomain (c-24-6-192-50.hsd1.ca.comcast.net. [24.6.192.50]) by smtp.gmail.com with ESMTPSA id n63-v6sm277975pfn.9.2018.10.04.21.14.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Oct 2018 21:14:19 -0700 (PDT) From: frowand.list@gmail.com To: Rob Herring , Pantelis Antoniou , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Alan Tull , Moritz Fischer Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, devicetree@vger.kernel.org, linux-fpga@vger.kernel.org Subject: [PATCH 06/16] of: overlay: do not duplicate properties from overlay for new nodes Date: Thu, 4 Oct 2018 21:12:37 -0700 Message-Id: <1538712767-30394-7-git-send-email-frowand.list@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1538712767-30394-1-git-send-email-frowand.list@gmail.com> References: <1538712767-30394-1-git-send-email-frowand.list@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Frank Rowand When allocating a new node, add_changeset_node() was duplicating the properties from the respective node in the overlay instead of allocating a node with no properties. When this patch is applied the errors reported by the devictree unittest from patch "of: overlay: add tests to validate kfrees from overlay removal" will no longer occur. These error messages are of the form: "OF: ERROR: ..." and the unittest results will change from: ### dt-test ### end of unittest - 203 passed, 7 failed to ### dt-test ### end of unittest - 210 passed, 0 failed Signed-off-by: Frank Rowand --- drivers/of/overlay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/overlay.c b/drivers/of/overlay.c index 0b0904f44bc7..c113186e222c 100644 --- a/drivers/of/overlay.c +++ b/drivers/of/overlay.c @@ -393,7 +393,7 @@ static int add_changeset_node(struct overlay_changeset *ovcs, break; if (!tchild) { - tchild = __of_node_dup(node, node_kbasename); + tchild = __of_node_dup(NULL, node_kbasename); if (!tchild) return -ENOMEM; -- Frank Rowand