Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3323429imm; Sun, 14 Oct 2018 17:29:54 -0700 (PDT) X-Google-Smtp-Source: ACcGV600L5j2T60O1radqfYlm+BscL7JI80RU1LEbEM/j3S9Ydt2MQ+4Z/nr80+IJgzx2Z1TJD/N X-Received: by 2002:a63:924e:: with SMTP id s14-v6mr13731490pgn.141.1539563394790; Sun, 14 Oct 2018 17:29:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539563394; cv=none; d=google.com; s=arc-20160816; b=0Bg3xDTcdGTG3TccdNwgrOo0YkteE95NoqFZ37VGu++DfM6aY+PhA4+kyTYWfCfv38 KlO7Wqz4z79eUqL+sP4ajgC1cOD64GBPqT0lKnSRh3LS0lQd9gdhlTGd7WWQK9yOLC+F UJa2Z+VXO2xpkh7YukfRT3/FL8MaMPasY9uGbc5dQwHzGeYwsArNH5hGDnFJh66L8Y6l OvX1pkagzsD2tjR9Mx3OUZo7cVTiPw089LHQpcVh/xBMYzcIeqUmiAaQ760R9OZitCsA i3NQvVwn3ERRmJCUlSh4HMD8qAq441JhniyqaaLI6kl7C5bqMccOOB27ZsMjMjGOmY+A 6S+Q== 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=Y8f+zX4OUAoqVg/3NA0TrDwr4Zjok9K4JF3715XNZDg=; b=KcrjA+jP2K2SCtBvesqN3UdalG3TDHaJrM1BhRRKE9uxkCNPg2SLL11lQE+dLbJbji 7eUDBaI1QzZzKIUzQm7SmQbOSlsBP9PG6+uYHAkgklJipRjUvMjpBMe4bkhRsvB8/azC GOObMfQFvhMsWFa70oOECKacmo6WujKCIBcvDRw3ZfHfMJrk7InGCG2SWBMPwSeOP8ah p9ZrUl2nLw0nhX6EHs32Bgy0ZxgSdE5NrnQpE2CJqPMyGM0aM4Kn+BvcSMhcO8n2lHmv ULTL1aeMwYuLqB/vXskhgf9I0PedPbTq3R7pWwvOpSy4XqHVkexiFk/bguLpOp0dPJ/J 5hwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vddVpi1A; 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 k6-v6si8590426pls.174.2018.10.14.17.29.40; Sun, 14 Oct 2018 17:29:54 -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=vddVpi1A; 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 S1726698AbeJOII5 (ORCPT + 99 others); Mon, 15 Oct 2018 04:08:57 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:36244 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726638AbeJOII4 (ORCPT ); Mon, 15 Oct 2018 04:08:56 -0400 Received: by mail-pg1-f195.google.com with SMTP id f18-v6so8308927pgv.3; Sun, 14 Oct 2018 17:26:07 -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=Y8f+zX4OUAoqVg/3NA0TrDwr4Zjok9K4JF3715XNZDg=; b=vddVpi1AmJhyFbWAVOaSGOLGGucg2BUuxTM5wvJ2OvyCwJtjgqZm+XdzDCZpavXCyU OHf2twaNg8dWJQzJNbvwF549GEuholfxTpWdf1BO2ooOHKlvRDiBqzabv7gqpNNN9Fca xhtud/n/B/hJ1WGlCuBwNV0m29wxzMCMwqIFprGB+M+MzS/JtMy3M727yeJEgCfJ1v3V OJZRRR2fde/vphpuw+ehqPqGiYuvoensA4vLkD1bA0/xRGvHiaTTkA+0TimUIZWUUdhk 4F4UroT+e6b1mgkKbGgZPNVOqrDT2jsw71tiCh2PulVy29g8I0hTnovjscE6BLugImS2 vfBg== 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=Y8f+zX4OUAoqVg/3NA0TrDwr4Zjok9K4JF3715XNZDg=; b=rSRkvu9crwEjEe1GrMHWvICPDF9015GAtOjfsqlGBAutdEkDwMTauyfQgsibkkId+U +SqxiKIs90kE3HoPqXNETESOoWGRmmj0RY9sFHTKcFqSyUecxZwNmnZeSiNHW6qvvS0g gfCenkNkroNjM/lfNqq973pzkIi3Okbk+CX/ms/L3zSILdAETt23M+yN7mQW53xlYVDP nVT9IIbbZjZsdQUiFBc5Z6qYEEiMSk4L9KiOc5iTLWmyb9MCcD4o8TK93V0WKvJ7oG/r uLWHaXTeIS2/J4B2KRkmsZ6MJsw6vIS7TkjBWp8kKt/45YyP8cz6l/YOVPDoqbu09nE/ SNdw== X-Gm-Message-State: ABuFfoj/AeuV4WMiYRTFZMSPirUWgMCRClISMuxC8xliSlj3ggBCa7sB H8sTk6N3oisJsmKGQXsTQoE= X-Received: by 2002:a63:1122:: with SMTP id g34-v6mr13827364pgl.85.1539563167453; Sun, 14 Oct 2018 17:26:07 -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 j14-v6sm11387110pgh.52.2018.10.14.17.26.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 14 Oct 2018 17:26:06 -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 v3 06/18] of: overlay: do not duplicate properties from overlay for new nodes Date: Sun, 14 Oct 2018 17:24:18 -0700 Message-Id: <1539563070-12969-7-git-send-email-frowand.list@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1539563070-12969-1-git-send-email-frowand.list@gmail.com> References: <1539563070-12969-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 94740f4ee34c..7fcf4a812d06 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