Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp166358pxb; Sat, 11 Sep 2021 01:25:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLo9ufGFCy8ZlO5Pg8O0zQCCa1VX7XPnNJX3Flhz9Xik3iL1w97AobASrHKxE2OpqP2tBk X-Received: by 2002:a05:6602:340a:: with SMTP id n10mr1349739ioz.188.1631348700296; Sat, 11 Sep 2021 01:25:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631348700; cv=none; d=google.com; s=arc-20160816; b=i2i9kW9eKRvIpXyEMi9BRbKosQbvKsZ1oVFozqZRpsO1p/oGNkH1Yhi2IK9uyq9Ftv T/iFz1CdKnPHfHilR15qK0fLOUOpz9/06rMjCv7B2Aj88bCd6dZSP3triSy4MnI6IwIt SLXFBwfuDYfbJglh/zNfj2IbzWinADk6IZ6zTMfk2hckPOV7oUPA6hFijVEFFBzs11Mc a2hJk6oxXu1h6Qd64p1dGBgnLnhQDvRgLchnMfCkmeQUj2yxJ8H/GPbwRBrZraokQAa+ l4m+/m476rjyqVnvgjFWSIBmcaHj9lzHgxpPXGD0yYeSSF0KdbffT5FePwzfFs+SiaKX Eslg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=mwEHNe9p8dE5lyzm6f/JHx6IqIjj6pj93JQeNaIucgg=; b=luYbfIxTu3GB8O9XZ5vjgFPnAVmrhOl4aR44LMneTTbuumpVmhGQrM2pFKPwZztWot vzgdX9VcchvFZtN83u62HRnQh1IaVC1vcqn8NWL2887poP/i5G62ujzs+KhUH+Zpe0Na 4vOGSBuYI+eRzQv8ZrUVRhuOJ2lOe2Zi+3al1hVA08cATsaQILOoYxI6UMnKS4s8fX1R 2LN/fKW0C9CdXz5iSg1T4gS+H9puMCiNPsVTxsQ0hbOW7vEPla/NwZISXT5SO69Fyhox CSGBx4tg2jh6X/4Asbrb28mm+0YhYA6kAxGZxoJaHaeluhSSaOziTuao0P4+hdHRMT8o ow/A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p16si904062ilc.75.2021.09.11.01.24.48; Sat, 11 Sep 2021 01:25:00 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235442AbhIKIS7 (ORCPT + 99 others); Sat, 11 Sep 2021 04:18:59 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:19027 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235334AbhIKIS6 (ORCPT ); Sat, 11 Sep 2021 04:18:58 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4H659J66jwzbmHd; Sat, 11 Sep 2021 16:13:40 +0800 (CST) Received: from dggpemm500004.china.huawei.com (7.185.36.219) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Sat, 11 Sep 2021 16:17:43 +0800 Received: from huawei.com (10.174.28.241) by dggpemm500004.china.huawei.com (7.185.36.219) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Sat, 11 Sep 2021 16:17:43 +0800 From: Bixuan Cui To: , , CC: , , , Subject: [PATCH -next] remoteproc: qcom_wcnss: Add missing of_node_put() in qcom_iris_probe() Date: Sat, 11 Sep 2021 16:13:47 +0800 Message-ID: <20210911081347.33929-1-cuibixuan@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.174.28.241] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm500004.china.huawei.com (7.185.36.219) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add missing of_node_put() in qcom_iris_probe() before return. Reported-by: Hulk Robot Signed-off-by: Bixuan Cui --- drivers/remoteproc/qcom_wcnss_iris.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/remoteproc/qcom_wcnss_iris.c b/drivers/remoteproc/qcom_wcnss_iris.c index 09720ddddc85..f77ab49a9cae 100644 --- a/drivers/remoteproc/qcom_wcnss_iris.c +++ b/drivers/remoteproc/qcom_wcnss_iris.c @@ -140,6 +140,7 @@ struct qcom_iris *qcom_iris_probe(struct device *parent, bool *use_48mhz_xo) ret = device_add(&iris->dev); if (ret) { put_device(&iris->dev); + of_node_put(of_node); return ERR_PTR(ret); } @@ -192,10 +193,12 @@ struct qcom_iris *qcom_iris_probe(struct device *parent, bool *use_48mhz_xo) *use_48mhz_xo = data->use_48mhz_xo; + of_node_put(of_node); return iris; err_device_del: device_del(&iris->dev); + of_node_put(of_node); return ERR_PTR(ret); } -- 2.17.1