Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2428970iob; Fri, 6 May 2022 02:40:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6A5Sz11GHEhPLAX3FBKNj9+po86Yc+5ef7AJbaMZMdNO+dtcm8nRXH8p5Mx2A0JRhyp8o X-Received: by 2002:a17:907:9494:b0:6f4:6af7:fb8f with SMTP id dm20-20020a170907949400b006f46af7fb8fmr2174666ejc.598.1651830012851; Fri, 06 May 2022 02:40:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651830012; cv=none; d=google.com; s=arc-20160816; b=yrTgnsYhyKy1fDHrNA6QsCZTYqEBxf/WqgwWeHMU9HWURxPX4uC6eEKVRm17L/kRco 2wkNz2yHBPxftopjf8dfyTEgtrz2L1azSPV8SzdqFt6MuPj2E0zemHp43UWye+/mHczX EyLZxqXcpO5orzGBRhUp+iM+byuVKdaahtrx+f7q4/NnjE6sAIBNxdp5y9KuZ26TbQU1 STCcI1y8lgzv/wXye+EcWa9mg+ONlP+83dmKdpDjNhQIM07q+6zxcC3y52rX0CAF71Nh NTPeAdOUw33o1LyfTKXQ/XhGcsfHOUBJY6rdb5jyd9J/gTjJ0qdzIJhw/lAieMBgWJek VOfA== 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=1Fyp7fB+86TlJBS2ZlM/EH+cDDhX/ZAeMJO/OpoHDKI=; b=EpRxv6uV6Sur7uB+I8P44Wl5MsHg+poM7mtM7wm0+Ofi3g0rgem730DI37SsJ3m6o1 PpgOT8ebO0iYGVlE3sBLvSNIFl14Htp8iJQpGEmzzNHVlO0JP5x9mYGrPuMcRO3OKkx+ 8VLF8byWwJ41pSTG88dcEoOsdRorcGfiT6Of+L4AnNQV16HZaYAJRCXfvcTf8DAFeR5J Q2qNRWAgQOin075K1MPhg9eQeYQn+JRRVcA71+TW4gV1KcsVmOm77EG++9lkJf8kFlsG sYv4ZVj7MA6kNkkTWSHdiuqT3SFVrDeUBMVBeX9YnfdlhnAjdKsLBKiOfp5Q9bN+KLkB IIVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ftPPULb2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa19-20020a170907869300b006e8aba488dbsi5032210ejc.426.2022.05.06.02.39.49; Fri, 06 May 2022 02:40:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ftPPULb2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354080AbiEDQ5R (ORCPT + 99 others); Wed, 4 May 2022 12:57:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353894AbiEDQwp (ORCPT ); Wed, 4 May 2022 12:52:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FC1447AC1; Wed, 4 May 2022 09:48:49 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 776A061771; Wed, 4 May 2022 16:48:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C41EFC385A4; Wed, 4 May 2022 16:48:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1651682928; bh=vElSciYUSw5PYLIPgzAopPeCZT3L1Ns5W1UDzeUU2sY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ftPPULb2HKb1930r+yxyFhqa28LbKPU2rcMX5y89IILfepLCbCd+hcuF/OpsU3Sjc iOMmw0GC6EM82XCrPumah1EHnaaM/n4biEEuz/TAGDGwfTGlmTi41cIrwb4K5nAdxZ 36Ydrr4Qq6zAHX/ASL/RXNXXnQ8LEoXP8PgqxH+g= 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.4 35/84] phy: samsung: Fix missing of_node_put() in exynos_sata_phy_probe Date: Wed, 4 May 2022 18:44:16 +0200 Message-Id: <20220504152930.285423313@linuxfoundation.org> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220504152927.744120418@linuxfoundation.org> References: <20220504152927.744120418@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=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 4dd7324d91b2..5077987570fd 100644 --- a/drivers/phy/samsung/phy-exynos5250-sata.c +++ b/drivers/phy/samsung/phy-exynos5250-sata.c @@ -190,6 +190,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