Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp443922pxj; Thu, 17 Jun 2021 06:23:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMKbUR6gEgRIJsJm2MQNok1fHr2dqizYCwW8J6CSz59azDfCBd1A9/nw6ZHCWskjj6umHt X-Received: by 2002:a05:6402:4311:: with SMTP id m17mr6365121edc.372.1623936237797; Thu, 17 Jun 2021 06:23:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623936237; cv=none; d=google.com; s=arc-20160816; b=Qu0NS9k7jG3UFz3FHog4vK5fVMo30iMh2k4OEmfutZbzDpX9RA+xQN0HRT7mBxmteU mEMyxkdGBodkgs+5V5vQ0rkdYhcb2Z3ZnPIOyD2WZ4ahXuTANWGvJ2QUAn8jh8w5MtJ4 4XHfIy+5jK4D0kgOd72AFl04xahWo0hqcus45ldaF+8d78eOfVx0mm2rRwMbigaUpI/m q6pN5c0n03pGAMZRMa0qJKSOVwML2+Pfv9baLdBJcTa5VJaw0mZ4zjIYPKb4nCHlVfe0 c6LnXABbwDCDAJvugNoqIRp33SJjY1OZmEwntat/+o51e0oUDyC+Usce6cmfYu1ACKNe Z5iQ== 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=kwA7sYhsivb8lQevkNi0tUUQRiF9XZOaxsQTD1WH/Gs=; b=GJ6OPFpTsK+VjqSx3mHYP7UMTyw3906BdGf3GZ110dSTSTieJDzwZqUXMpKw/F3BpS NK6skIfYUkNrtcbSeaJf2ADnrR032Fhi9yalBs1ZTEFxVpduSwX6DE1DsUgwGd53lrtw dd7Zd3txvi7B8kJ7F9qNc3LExJgWa7oYiJ6YA+naOXsUuRfLVU5lYDdWZF7m7k8XETZq NXjZ8tmtE/oZCyT33dWcK6q/mljKHvoTTrOIBGZFnjgSVlqFw2viLIl92Qvk1Ziq98d+ SYdxst+uooyQvOfYpK6Lk+5PrcJ5Z7yHiVsUOeK5uXo5VHl4nEDb53Jewe+n1/IvlcMp P71g== 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 6si5306181ejq.442.2021.06.17.06.23.34; Thu, 17 Jun 2021 06:23:57 -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 S232410AbhFQLPm (ORCPT + 99 others); Thu, 17 Jun 2021 07:15:42 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:7470 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231593AbhFQLPl (ORCPT ); Thu, 17 Jun 2021 07:15:41 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4G5K9842QwzZjG0; Thu, 17 Jun 2021 19:10:36 +0800 (CST) Received: from dggemi762-chm.china.huawei.com (10.1.198.148) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Thu, 17 Jun 2021 19:13:32 +0800 Received: from linux-lmwb.huawei.com (10.175.103.112) by dggemi762-chm.china.huawei.com (10.1.198.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Thu, 17 Jun 2021 19:13:32 +0800 From: Zou Wei To: , , , , , CC: , , , , "Zou Wei" Subject: [PATCH -next] scsi: ufs-mediatek: Add missing of_node_put() in ufs_mtk_probe() Date: Thu, 17 Jun 2021 19:32:02 +0800 Message-ID: <1623929522-4389-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggemi762-chm.china.huawei.com (10.1.198.148) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/scsi/ufs/ufs-mediatek.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/ufs/ufs-mediatek.c b/drivers/scsi/ufs/ufs-mediatek.c index 1a517c9..d2c2516 100644 --- a/drivers/scsi/ufs/ufs-mediatek.c +++ b/drivers/scsi/ufs/ufs-mediatek.c @@ -1120,6 +1120,7 @@ static int ufs_mtk_probe(struct platform_device *pdev) if (err) dev_info(dev, "probe failed %d\n", err); + of_node_put(reset_node); return err; } -- 2.6.2