Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp475687pxj; Thu, 17 Jun 2021 07:05:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwD6NDIP9IpKgGYahkaCJoQ3XR+e/gPagxGvBNaKpkqcu4S5yv0Kt55/Rm+SHYlztP+WxFs X-Received: by 2002:a17:906:a108:: with SMTP id t8mr5318422ejy.407.1623938708504; Thu, 17 Jun 2021 07:05:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623938708; cv=none; d=google.com; s=arc-20160816; b=L08pHfI4WPwMrejJze3lmjVygu+huQvbMVQIw5k5ljMRHJ76fZQlkTmOp8TA8srXXu 6OCJzM45oM6sF6Zv+AUn5CsZ2v27c4L/vgAFqupXsoKfe3Clo4Wtylpa52PtqPov/itE LY1EATEaVdk9edQOQ5R5XQzdUOhJc0O0DQhDgZXgn6Y07xqJc7GMM9jx8Um5N3Br4hrx eSSEUUz5PuX47YIdOLKJEDIZEpIRrRLxvXhNks5WYud+mJcRyP8v8UolEUbYGMggw998 ckj5GKo1QVYlvE1S9y87SdByLThGE89BYqrYC39ga0kiB+aNDULFf95gFXG8xOmBD5Y3 Cyww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=Dr4crDlnrBMTf+FSUe5umXcnVKoUvla4lRMeoioKKOU=; b=DC/s68BVbjcnkuenWAevJ16CgfnKpueJdT5GUQoWOVns/bka/1eYXZgUBtly+yeXvH 1eo0IuvVQl4pugtVZCKy9mHIaRuvUnyVyULH1z5lCcvvTFe7kAXnERdIUj041nbAdB0/ vgBw9o03qtD7RUCT9OR1BfJki8mUfjyOKmcdOywJYBHqu16QEUwsUyD9rzisg3mdJ4y1 ONXD3O8RaFpDUEoO40+2asCS9PxTLYhM+2LYlYOyKFW67gS9nxDgMKouqfedMS7S40+D qvI06LfYhzhbor19Kur/APz6KS0fgRzYQhQotxXkOHEXnlCT5NAaDXnda5TJFAAegC5U rIUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OFGIo3Ua; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id b24si5464607edt.82.2021.06.17.07.04.45; Thu, 17 Jun 2021 07:05:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OFGIo3Ua; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231229AbhFQMi1 (ORCPT + 99 others); Thu, 17 Jun 2021 08:38:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230225AbhFQMi0 (ORCPT ); Thu, 17 Jun 2021 08:38:26 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73C46C061574; Thu, 17 Jun 2021 05:36:18 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id s22so8776980ljg.5; Thu, 17 Jun 2021 05:36:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Dr4crDlnrBMTf+FSUe5umXcnVKoUvla4lRMeoioKKOU=; b=OFGIo3Ua/gjCqj/ghDAl4jmcBP/nE8v8cvQCfgcRkWK6GHbU4syvujBNNEKcU+9Oai MVXbv1fdJkLWvmpEqeg4rTuouaL7o/YmHTotr8ahEev4ccQz8XE1EDulq+G/Xy2iohUp rdbEoEVhFtmCA1kSYW9Ox+o5RJINRwuId1FRRCmO9IdWwJBFstZdBnHcmR3FMMDEtzdz wQPl+HO9s1aeA0bjDfUvpQIC/LZd/5DFdqJxHmp0eWlF2aTNVUmGPrpePnj9zUhzvr9Z mtUUcId1q1/CuK+BJdPP74z/g6JeTL/+JWnsnTyt4cKkaGPD5CcGJYQ0owcjJBu/WOL2 UBVg== 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:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Dr4crDlnrBMTf+FSUe5umXcnVKoUvla4lRMeoioKKOU=; b=C6us9fCNg0eOdQDHtbLJdrtUUQTfturWwXHzbmfjZBt3vgHZmBMTT06lyJfz28C5Ct DPBADg7P4c+Kzq/cWUOhIPRWl2Vq4CnRmUaPK3mPAM6ixUYxt9ANuXaMa0sk2XVsiCnE 9+0hZQnJ1urJ01WBtExn9lKt9Dsq+vwN0+2I7B6W0brJ7f39Ohv925qmsnQTzcfB4HFT JMP0gBVP5VTVFV6CkKOfIXa6+hQf0agkeZz2h2tCSVKLYq5MrlOCiKNAWegRFLJYk/Yk 37o56d1D1mUYq0sNqTXKQuQQbUjkcrT6Rtf88R+T01wROy2u/GfOqyrMnIX/YMueCejS Bb9A== X-Gm-Message-State: AOAM531u6tSeYEq66gBsiUSO30HrV5EPHOxZW0FRhjGBzpGFk9AGZyF/ 1rQ6FVlKirYP3IWkQz21o7faMlM4QKs= X-Received: by 2002:a2e:86c3:: with SMTP id n3mr4323873ljj.449.1623933376631; Thu, 17 Jun 2021 05:36:16 -0700 (PDT) Received: from [192.168.2.145] (94-29-29-31.dynamic.spd-mgts.ru. [94.29.29.31]) by smtp.googlemail.com with ESMTPSA id g2sm564896lfu.173.2021.06.17.05.36.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Jun 2021 05:36:16 -0700 (PDT) Subject: Re: [PATCH -next] ASoC: tegra: Add missing of_node_put() in tegra_machine_parse_phandle() To: Zou Wei , lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, thierry.reding@gmail.com, jonathanh@nvidia.com Cc: linux-tegra@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org References: <1623929447-4335-1-git-send-email-zou_wei@huawei.com> From: Dmitry Osipenko Message-ID: Date: Thu, 17 Jun 2021 15:36:15 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <1623929447-4335-1-git-send-email-zou_wei@huawei.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 17.06.2021 14:30, Zou Wei пишет: > The function is missing a of_node_put on node, fix this by adding the call > before returning. > > Reported-by: Hulk Robot > Signed-off-by: Zou Wei > --- > sound/soc/tegra/tegra_asoc_machine.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/sound/soc/tegra/tegra_asoc_machine.c b/sound/soc/tegra/tegra_asoc_machine.c > index 397f326..cba55ca 100644 > --- a/sound/soc/tegra/tegra_asoc_machine.c > +++ b/sound/soc/tegra/tegra_asoc_machine.c > @@ -336,9 +336,12 @@ tegra_machine_parse_phandle(struct device *dev, const char *name) > } > > err = devm_add_action_or_reset(dev, tegra_machine_node_release, np); > - if (err) > + if (err) { > + of_node_put(np); > return ERR_PTR(err); > + } > > + of_node_put(np); > return np; > } > > You haven't tried to check what this auto-generated patch does, haven't you? I assume it's auto-generated because it's a nonsense.