Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1552958imu; Wed, 16 Jan 2019 22:40:13 -0800 (PST) X-Google-Smtp-Source: ALg8bN7Xf7W7UL7xLNmCHk/12WInGmrIswI0JysnyWOW9+GkP7RDBN3ihmqrfZsoRnRLoG8FvxOd X-Received: by 2002:a17:902:5a4d:: with SMTP id f13mr14149320plm.49.1547707213734; Wed, 16 Jan 2019 22:40:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547707213; cv=none; d=google.com; s=arc-20160816; b=0BjeLIEOd4NOLA8E/nT4JHQDKPi51JzIQIgaHxcJbjD+jQGJFPxDA3/eDe70tw2SLK uRj0eNEJOIutbyButGSPTUg7KO4NnzhMpnYE0TCLS+MD9lvduLofKfXqjrWG81WncDAF wCLmSofePC11WXsTFvuN7NJGOyQQ1iw1gYhkoCRHOWSlRm2xufGMgBCplX7KfGYMIKXj 0X50ZhZVCzZnb8DRdaERCGOsXeTgFiYgIVPd+5UgZv2LOBaF3b5er4O8DDz4EpZXJkZ7 bsxpWr5zzZg6jdo4NcVY5ZEWhDc/ikUb+tIHG8zBrgwW+Yi22Zcs/cOok+HbjRBPtCO2 ib0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=PuGtU5AD70dwOQkXQnSn4esm9NpIkKdcv9Os85UIPVA=; b=ZIJeZUlJ1XURwdrXaBOwhk0l7k1afF85enfL0vhe8JuCd5jWdTBbCmq//GnzzBoV6n PE1a3c6xnhlENxF6EjZQSipy0Vr/1ZU651mttGQe4yj6maG8KUuj+MgEg0DV/RjkIYA4 5stcKz25mqL51gEDxrZBCnx6krhRi/sIYkxC9Mkhwe3L1w+frvI7NGY2WsEX0xp7kwM0 5S6K8WPvMWcCchVgMIbJfX9E60Lv8UXLHLwzJCVWHfbKAiJ3AJ7Q6D1E35YJxOduCWew xHDjLZgbyZQyy8+I/GOsto51hx6SU+dUplkPqP2BEa1vSLHU+1dsu8oyVIvDpYUlLzYX 56gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CIETWKn6; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x18si822711pfm.39.2019.01.16.22.39.51; Wed, 16 Jan 2019 22:40:13 -0800 (PST) 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=@kernel.org header.s=default header.b=CIETWKn6; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730156AbfAPTDm (ORCPT + 99 others); Wed, 16 Jan 2019 14:03:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:38672 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729330AbfAPTDm (ORCPT ); Wed, 16 Jan 2019 14:03:42 -0500 Received: from mail-qt1-f174.google.com (mail-qt1-f174.google.com [209.85.160.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 870412087E; Wed, 16 Jan 2019 19:03:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547665421; bh=nUSJQJtO9BLTvh1v50utYt+wrQTcDtXAy5C1rF6BNFk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=CIETWKn6wjYiswQSfH9MfMxjdRaGJOBARrVFaP619j+pEgFw+lp1ZDEk42i7MKopO Po5xTlFnd05iLGy//ZSPcXHCewu7NP6f+d+uZD4V5ZPXl/owKPj7fey3buMOxNJ6+K AkfU6H/I6tuikY3G9HIadBOPVIImXiSQmvUAa5gc= Received: by mail-qt1-f174.google.com with SMTP id y20so8403402qtm.13; Wed, 16 Jan 2019 11:03:41 -0800 (PST) X-Gm-Message-State: AJcUukcG/Jy4uQ+F0zIWYu6WL2A97maTfH3zQk4XLc6X+fYRkJAvQH7L t5fyut1IDyqs60VFGWmY1Kz8ispD7A7VkbrHjw== X-Received: by 2002:aed:3ecf:: with SMTP id o15mr8436396qtf.26.1547665420796; Wed, 16 Jan 2019 11:03:40 -0800 (PST) MIME-Version: 1.0 References: <1547372691-28324-1-git-send-email-Julia.Lawall@lip6.fr> <1547372691-28324-3-git-send-email-Julia.Lawall@lip6.fr> In-Reply-To: <1547372691-28324-3-git-send-email-Julia.Lawall@lip6.fr> From: Rob Herring Date: Wed, 16 Jan 2019 13:03:29 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/3] OF: properties: add missing of_node_put To: Julia Lawall Cc: kernel-janitors@vger.kernel.org, Frank Rowand , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 13, 2019 at 4:21 AM Julia Lawall wrote: > > Add an of_node_put when the result of of_graph_get_remote_port_parent is > not available. > > The semantic match that finds this problem is as follows > (http://coccinelle.lip6.fr): > > // > @r exists@ > local idexpression e; > expression x; > @@ > e = of_graph_get_remote_port_parent(...); > ... when != x = e > when != true e == NULL > when != of_node_put(e) > when != of_fwnode_handle(e) > ( > return e; > | > *return ...; > ) > // > > Signed-off-by: Julia Lawall > > --- > drivers/of/property.c | 1 + > 1 file changed, 1 insertion(+) Applied, thanks. Rob