Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4825642iob; Mon, 9 May 2022 02:31:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3MGGnk4UAPcogT5U0hVD1LngUGFtkTPxspmky+IuTjpBgrHcFawmlC8l5T43m19RD+uP4 X-Received: by 2002:a05:6a00:1310:b0:4ca:cc46:20c7 with SMTP id j16-20020a056a00131000b004cacc4620c7mr15193372pfu.44.1652088672401; Mon, 09 May 2022 02:31:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652088672; cv=none; d=google.com; s=arc-20160816; b=qqPUtC7FV0mwwQcf6FMIyZBXEZMuG9dyBo7tb/uYbNt52S5ffRJkvJTQwr9Zqz15py C+PK+9U6yL8g1A/ZCNdzPI3/6kpPPrKmXmy5mfqUl3/4Q8O1ZcW3vx8ETx+B8j5DgGCz 1XgZS76H9e4AhJE0NxVZPfF2YFZhNS+WpdrzCVy4xd2BXeS3d7cULZPkNjGHtbu0OpZk mE3RFdHraTm1j0j68MhUNZ4s2NSHVhpwvziVpfrKjhQJ/atfqizO25maJxk0M+cp0qMR sjas4O0bhMEpHUkXCAgrRXY1ZUL5oxyX7XgM/z9js6wVuVJmrILiIb1oCZGPdOHbz/pI jWGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ODPe3zf5tf9ALNf/+OmgVGVS1/6ayP/HZ3e2sMBEBvQ=; b=uprdY1T20BYYNplox9DjkZphuo1RWHQBQNc4RJUYW3PE0O70L0VJP8B9RCpr0z4l0B T2Ce+gT9R5r6bJpAlery+7+8qnd1E0lGQJEsp6SSDZ5ZIV7ruYQ/aecKAo4tYpYhn9kD EAC5VImO2vgLe8SBg2t7JJl427qpiIjUu8jsOtYpGPlYaCGjumY2hZjCz4H5oNrQZTl7 dqQoHh+GfmC9yFC5LEGiUahIXEzqYuYi2ORmadTDio3R3Y2MS9XCmIkSoLqNZPvIB2Ix tyZTJFG6McMJgOD7RdKC2Hnuao+O0y7JMG/qTCp9VqSCnHJMnuEbb/V2l1KeNiLaUQrB rOfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=loxPkITt; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s15-20020a170902ea0f00b0015e8b1857c0si13646487plg.250.2022.05.09.02.31.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 02:31:12 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=loxPkITt; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5B73D1EAF1C; Mon, 9 May 2022 02:19:01 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358828AbiEDRQQ (ORCPT + 99 others); Wed, 4 May 2022 13:16:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355865AbiEDREp (ORCPT ); Wed, 4 May 2022 13:04:45 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FA1C4993C; Wed, 4 May 2022 09:53:28 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B7E50B82792; Wed, 4 May 2022 16:53:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C323C385AA; Wed, 4 May 2022 16:53:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1651683206; bh=TWdPe4Xc82lbZV5izywkdR/TuTC561cxN6pB2TDCNhw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=loxPkITtQ2jySX/tHKJV+unmlvLitFXFN9ozJkdxWQtAZX1gpvhKuBc9UrdeWkP9y 30Ke/kFvh85l8wGOSRfvf1lbPIiKCL9TdxBlIErrdXtrUspDF7A/Bw6J6Qs77DGDM8 iCe6mrnLm8mMu+LmlreOIzl4CJehovpn/0b09vdA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Miaoqian Lin , Krzysztof Kozlowski , Vinod Koul , Sasha Levin Subject: [PATCH 5.15 058/177] phy: samsung: Fix missing of_node_put() in exynos_sata_phy_probe Date: Wed, 4 May 2022 18:44:11 +0200 Message-Id: <20220504153058.213531711@linuxfoundation.org> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220504153053.873100034@linuxfoundation.org> References: <20220504153053.873100034@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Miaoqian Lin [ Upstream commit 388ec8f079f2f20d5cd183c3bc6f33cbc3ffd3ef ] The device_node pointer is returned by of_parse_phandle() with refcount incremented. We should use of_node_put() on it when done. Fixes: bcff4cba41bc ("PHY: Exynos: Add Exynos5250 SATA PHY driver") Signed-off-by: Miaoqian Lin Reviewed-by: Krzysztof Kozlowski Signed-off-by: Krzysztof Kozlowski Link: https://lore.kernel.org/r/20220407091857.230386-1-krzysztof.kozlowski@linaro.org Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/phy/samsung/phy-exynos5250-sata.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/phy/samsung/phy-exynos5250-sata.c b/drivers/phy/samsung/phy-exynos5250-sata.c index 9ec234243f7c..6c305a3fe187 100644 --- a/drivers/phy/samsung/phy-exynos5250-sata.c +++ b/drivers/phy/samsung/phy-exynos5250-sata.c @@ -187,6 +187,7 @@ static int exynos_sata_phy_probe(struct platform_device *pdev) return -EINVAL; sata_phy->client = of_find_i2c_device_by_node(node); + of_node_put(node); if (!sata_phy->client) return -EPROBE_DEFER; -- 2.35.1