Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp3781987imb; Tue, 5 Mar 2019 19:49:59 -0800 (PST) X-Google-Smtp-Source: APXvYqxHXAMxlgquL5hDcRWuryui8PRIXeBMp3w3AaRQds6bGaB74PXQ47RsBRO3Ix0IOM/7UVgP X-Received: by 2002:a17:902:1102:: with SMTP id d2mr4821851pla.138.1551844199740; Tue, 05 Mar 2019 19:49:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551844199; cv=none; d=google.com; s=arc-20160816; b=Pq/IuPf4yIbaGubCwKhCY1pXxU/eyRgASlJj3vCjHrnxkw1SaTcfkAPAO9Twcv0Nxf RROckfr/M+XE4egvaKGtphD+mgsBHiGqBnEQI2TESAJgQ+Oau1gUzGR4JTuBb7j7pG8g 8T9/K4eZv2w/ytczyazUhNJ/4NFue2ecMtkBrBw4svmx9MqHctNJ0AmCwGYC5Yjrzjfx kMXU0iyQOEQ2QJDrtf6vBamjqkNPQUIXX9/uggeqDi/gcB9fMLmczBhQ/IF+4yf3hvb1 YyQrepJu5+9JnxaisTDz5DeCfv/Td2DFqKSFl+xZ1i24OeoMUsCYA8D6h6P+vAfkphMq zz9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject :dkim-signature; bh=zZx3LPVRYeDN5lTmlindAbMPgNL5491ibVRuhSiXMNY=; b=gRslbq0PEEPaikg02QNfBf2BBgi3399tb1dw4eaHNVObcup/2s3oz/U4iTqgAYyk97 pxjGXxP/FWee6WRGWAForlluAZgV7HVeUkvprHogBz85eBi3baR1rh9Uf11cIirPfKub Q/EKZufIwu0uLhdcG0eHByjyDUWK1zHXPDaKWCaXJUdgVtnmgDpfqQUOo9GB7C5PRos/ wuyJHbvPWIfSxLpFdeDNkzuV9k2fxkSkeEqv0kBHp7eccEiFldLBC3pHVr0rwJNL4QE8 mJHt9c7g4k1uQRKmYV0eacuefOpSopAX47cotLlKiTUGjrQCRweWIZD/7xlY2lZMsFPY 3ghA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DTDpQbfg; 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 p2si607856pfi.103.2019.03.05.19.49.43; Tue, 05 Mar 2019 19:49:59 -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=@gmail.com header.s=20161025 header.b=DTDpQbfg; 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 S1728986AbfCFDOU (ORCPT + 99 others); Tue, 5 Mar 2019 22:14:20 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:38665 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727730AbfCFDOT (ORCPT ); Tue, 5 Mar 2019 22:14:19 -0500 Received: by mail-pg1-f194.google.com with SMTP id m2so7142363pgl.5 for ; Tue, 05 Mar 2019 19:14:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=zZx3LPVRYeDN5lTmlindAbMPgNL5491ibVRuhSiXMNY=; b=DTDpQbfgbpDWxQ060i05QhSyxl8wezoI40+M3EHG13SJDv2wajZ8tAgrOO97Vmn7gY v7RFwNrJ8cjvHOiuErbmIOxUWvQaWJ2lF0bo5K23/GzXlV1DohUVGxtZkVVtHLPhHrCk 8+6OqB9z+IW7Qq5G2UseQsQb5yF0A6/K3/cIO6qiYpEPvpkYEmoeaEVwEyqsKnJrRCfh G6yvfnXLY92IyQETKpnqrv3hOK7z05jC2qNoj8SjCnq3lU0fXt6gKWS/VgpE+GnzXedH un059h+NgWI2aRmIk5B+x0EwZzPrUVfrT64dSnn13ZE/UBge0/hviJWtefd4SzcluZXm DKEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=zZx3LPVRYeDN5lTmlindAbMPgNL5491ibVRuhSiXMNY=; b=F4szum+1pPhTDq7idVZAk84nx6rUhSWfhHVn3bLdhJUbqMjveWn67kjnwH7Bn1qFZ8 Z4OqP+l0jqvOsShne+iIhj3kbKyF78jp4+/ulN/KSDOE5mLNoZMT9oFhJJiyCysGCwH9 t2jt1uDttUQ5wN4ltUBCaX7XeNVaYl9SBaOvo1kPPSRB92Dj/+XeOK0KuGXFVDtLY07N AddRmiVend9nsXJkVvTDHZGCrU1WtAXGw7+IZ73ZrXJQ5W9xSBk6NNB4LZ9HxbEkjKJn t/Pq7wsQkx4ZIUtdWTYvuF62aZCqXfrrzYoAXuXZspFXAGD+nvrvwge4fUiZccdNIraB mlLg== X-Gm-Message-State: APjAAAUbbRRQ/k39nWGNQXelD1xY1876rksux8mMi3Wwj+qfdwEO0yUZ GF8Pcennc1VWjKsg0drUF+4= X-Received: by 2002:a62:1382:: with SMTP id 2mr4991645pft.157.1551842058129; Tue, 05 Mar 2019 19:14:18 -0800 (PST) Received: from [10.230.28.107] ([192.19.223.250]) by smtp.gmail.com with ESMTPSA id v186sm610299pfv.184.2019.03.05.19.14.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Mar 2019 19:14:16 -0800 (PST) Subject: Re: [PATCH 1/4] ARM: brcmstb: fix a leaked reference by adding missing of_node_put To: Wen Yang , linux-kernel@vger.kernel.org Cc: wang.yi59@zte.com.cn, Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, Russell King , Brian Norris , Gregory Fong , linux-arm-kernel@lists.infradead.org References: <1551785577-45896-1-git-send-email-wen.yang99@zte.com.cn> From: Florian Fainelli Openpgp: preference=signencrypt Autocrypt: addr=f.fainelli@gmail.com; keydata= mQENBFPAG8ABCAC3EO02urEwipgbUNJ1r6oI2Vr/+uE389lSEShN2PmL3MVnzhViSAtrYxeT M0Txqn1tOWoIc4QUl6Ggqf5KP6FoRkCrgMMTnUAINsINYXK+3OLe7HjP10h2jDRX4Ajs4Ghs JrZOBru6rH0YrgAhr6O5gG7NE1jhly+EsOa2MpwOiXO4DE/YKZGuVe6Bh87WqmILs9KvnNrQ PcycQnYKTVpqE95d4M824M5cuRB6D1GrYovCsjA9uxo22kPdOoQRAu5gBBn3AdtALFyQj9DQ KQuc39/i/Kt6XLZ/RsBc6qLs+p+JnEuPJngTSfWvzGjpx0nkwCMi4yBb+xk7Hki4kEslABEB AAG0KEZsb3JpYW4gRmFpbmVsbGkgPGZhaW5lbGxpQGJyb2FkY29tLmNvbT6JAccEEAECALEF AlPAG9YXCgABv0jL/n0t8VEFmtDa8j7qERo7AN0gFAAAAAAAFgABa2V5LXVzYWdlLW1hc2tA cGdwLmNvbY4wFIAAAAAAIAAHcHJlZmVycmVkLWVtYWlsLWVuY29kaW5nQHBncC5jb21wZ3Bt aW1lCAsJCAcDAgEKAhkBBReAAAAAGRhsZGFwOi8va2V5cy5icm9hZGNvbS5jb20FGwMAAAAD FgIBBR4BAAAABBUICQoACgkQgTG1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QjMjn2K2XkvN75HnAMHKFYfHZR3ZHtK52ZP1crV7THtbtrnPXVDq+vO4QPmdC +SEACgkQgTG1xCm8ZqC6BwgAl3kRh7oozpjpG8jpO8en5CBtTl3G+OpKJK9qbQyzdCsuJ0K1 qe1wZPZbP/Y+VtmqSgnExBzjStt9drjFBK8liPQZalp2sMlS9S7csSy6cMLF1auZubAZEqpm tpXagbtgR12YOo57Reb83F5KhtwwiWdoTpXRTx/nM0cHtjjrImONhP8OzVMmjem/B68NY++/ qt0F5XTsP2zjd+tRLrFh3W4XEcLt1lhYmNmbJR/l6+vVbWAKDAtcbQ8SL2feqbPWV6VDyVKh ya/EEq0xtf84qEB+4/+IjCdOzDD3kDZJo+JBkDnU3LBXw4WCw3QhOXY+VnhOn2EcREN7qdAK w0j9Sw== Message-ID: <140acf36-21df-bdc3-5ad2-b934e521554b@gmail.com> Date: Tue, 5 Mar 2019 19:14:18 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.3 MIME-Version: 1.0 In-Reply-To: <1551785577-45896-1-git-send-email-wen.yang99@zte.com.cn> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/5/2019 3:32 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-bcm/platsmp-brcmstb.c:337:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 329, but without a corresponding object release within this function. > ./arch/arm/mach-bcm/platsmp-brcmstb.c:341:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 329, but without a corresponding object release within this functio > ./arch/arm/mach-bcm/bcm63xx_smp.c:150:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 130, but without a corresponding object release within this function. I would actually lump that in your [PATCH v2 02/15] ARM: bcm: fix a leaked reference by adding missing of_node_put patch since the subject of that one is correct. Thanks! -- Florian