Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp462398imb; Fri, 1 Mar 2019 05:32:47 -0800 (PST) X-Google-Smtp-Source: APXvYqx5ZydqnvJ6yO4DJTN46Bgxkw2CqS59XJGx/ZlKN4eeHSxFddjZzHbG5BxrdeMPSS3CJrKQ X-Received: by 2002:a63:5506:: with SMTP id j6mr4893015pgb.202.1551447167301; Fri, 01 Mar 2019 05:32:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551447167; cv=none; d=google.com; s=arc-20160816; b=CAJ9eXKALiCPr1h8ZcuasJG1xJygGDYH5EzcOqCcxBfGWbdtSMEKNvf0pDus6QIrsg gYdzNhAMy0/hVg19tZWM+erpsuPeTDhXRHIW0HQ6l+/EQgGwSBOgqFAHbD2nVsaE11ll f4FnURR7FHywHwOAnZedjpU0VrivWtCZACVxcxZ12e9vDpijlfxaIwjr1sR0uZ4RVv1e 3zYax1OmLVTvcRdMmB8eRZ00CcMhlvjA/bChA1oQacrLrzYE9XdjAA/YeWkfj+user6D ugTgR4AqpCElWxQRgyl1HSxapCB9WaM01KSKWzVmxDVzoZt9CQGVYsDRNPVpYBTgwfGu JAzA== 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=w/XJDPgZr92xbE7yFFhPob5maKvzEO0Ch9NxM0VD/tA=; b=tU0VaWNG6U/kaqJyUMHTIai1s0jFNDg77QeaqNADh7EHZTv47EOyyV1AwcyAc2YhQA VXFr7gSvGP5VbxWNjKYUrAF5IKSrprNKp4UElPtbPOI8p2pTpTYpEhEqCz7InADa94pY 2BzH6dZ+SdtAbN5XMqyS/vE167XupXDErEyDpSt4ket48MzLKWGYO+UO8RLIrPRmB//o bm2dEp7dDU7IlFSQUIOJ7fRq0IcTATxapIkeJP0aVRRUYsACFwPcI0v/e+2nenwKsbx4 L5EmA072LecwWH0hkftvkHgJ8FVzc2fah/RZtIRwFPd5qWWgplumbFoOT1Xfdy8G3qOQ XB4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DDOKuiSA; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d35si21228045pla.48.2019.03.01.05.32.31; Fri, 01 Mar 2019 05:32:47 -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=@linaro.org header.s=google header.b=DDOKuiSA; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732923AbfCANaV (ORCPT + 99 others); Fri, 1 Mar 2019 08:30:21 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:40074 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728243AbfCANaV (ORCPT ); Fri, 1 Mar 2019 08:30:21 -0500 Received: by mail-lj1-f195.google.com with SMTP id w6so20372243ljd.7 for ; Fri, 01 Mar 2019 05:30:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=w/XJDPgZr92xbE7yFFhPob5maKvzEO0Ch9NxM0VD/tA=; b=DDOKuiSAybrLJ9HTTyxnqDUYKXjm/K4uQyuMsw6fxtSlsimcQPnh5ydyQ3xHrqNBtj Myl/3Ef6pxTs3apyhr0wqKC1c97E93vv1JJ1SvB5LnW2ph+Tyc6uw6+231N51HjXY7/8 FuJbDswOwSPQo/JCFei/uxNAwLpXvrdQJQehhNcL6KzEzP/6OZcxpMsxQ6CXg6I5PHNa PUdyPg0Oe3Khbdo68+M7g7W5M75WXSDzighDnyuCURZwjo/QpQHbgb8vcy34GCcLVO9v sgnh76Y8n9Pav3vNyMPBSoAVX7yoV77yW3TjE6PdjBn/ORpP8c5UiUIL/9ceMgW1UYSf KFtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=w/XJDPgZr92xbE7yFFhPob5maKvzEO0Ch9NxM0VD/tA=; b=HVpJfaNgMw1V5YqAKhKz7oaspGQAC92ykrSV3VExXY50I7cVLKoTqYnabk412CsNoZ fQ2v5WQoPWkqmVHCCZI57LuC0DERSC4Q4TvIg0jhlsX10xgHCwEFY8fEtX3zGgyy2S63 N1X/JSCODpVMy5FXZ84KjYexUk28UJCUTgy3E7ilN0x2Vc3pmaqibsIwMJvDjaHS/JQ3 7alRgjZozQ5rlhBHlWGcQ6+UuhAkd14GEvR2MlRnQy1B7zCJSOtz+jfiIUqevg7sjMkQ LJf1Aab7EsOgwy1X4nChcNu2FK9EQK71FlNNINu6TnUymoE0grQSrtPHGmZ5MjMGF7I9 ggsA== X-Gm-Message-State: APjAAAVRgj7nkE+z3vOldJaCq4L80j0Fv2XCvhxCGbFKu88H0AcVf2qM 5+SnbfKkKxfzWI0LJD7HPRC7a8FZCa3lkM7Lbz/ZQA== X-Received: by 2002:a2e:6a18:: with SMTP id f24mr2839458ljc.97.1551447019150; Fri, 01 Mar 2019 05:30:19 -0800 (PST) MIME-Version: 1.0 References: <1551430616-42014-1-git-send-email-wen.yang99@zte.com.cn> <1551430616-42014-11-git-send-email-wen.yang99@zte.com.cn> In-Reply-To: <1551430616-42014-11-git-send-email-wen.yang99@zte.com.cn> From: Linus Walleij Date: Fri, 1 Mar 2019 14:30:07 +0100 Message-ID: Subject: Re: [PATCH 11/15] ARM: versatile: fix a leaked reference by addingmissing of_node_put To: Wen Yang Cc: Liviu Dudau , Sudeep Holla , Lorenzo Pieralisi , Russell King , Linux ARM , "linux-kernel@vger.kernel.org" , Kukjin Kim , Krzysztof Kozlowski , linux-samsung-soc , Michal Simek , =?UTF-8?Q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam , Dinh Nguyen , =?UTF-8?Q?Heiko_St=C3=BCbner?= , "open list:ARM/Rockchip SoC..." , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list , avifishman70@gmail.com, Tomer Maimon , Patrick Venture , Nancy Yuen , Brendan Higgins , OpenBMC Maillist , Xu Wei , Maxime Ripard , Chen-Yu Tsai , Catalin Marinas , Will Deacon , Simon Horman , Magnus Damm , Linux-Renesas , Shawn Guo , Sascha Hauer , Sascha Hauer , Fabio Estevam , NXP Linux Team , wang.yi59@zte.com.cn 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 Fri, Mar 1, 2019 at 9:57 AM Wen Yang wrote: > The call to of_get_next_child returns a node pointer with refcount > incremented thus it must be explicitly decremented after the last > usage. > > Detected by coccinelle with the following warnings: > ./arch/arm/mach-versatile/versatile_dt.c:315:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 302, but without a corresponding object release within this function. > ./arch/arm/mach-versatile/versatile_dt.c:320:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 302, but without a corresponding object release within this function. > > Signed-off-by: Wen Yang > Cc: Linus Walleij > Cc: Russell King > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-kernel@vger.kernel.org Patch applied. Will send upstream next kernel cycle or so. Yours, Linus Walleij