lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Fri, 20 Jan 2023 14:15:51 +0530
From:   Deepak R Varma <drv@...lo.com>
To:     JC Kuo <jckuo@...dia.com>, Vinod Koul <vkoul@...nel.org>,
        Kishon Vijay Abraham I <kishon@...nel.org>,
        Thierry Reding <thierry.reding@...il.com>,
        Jonathan Hunter <jonathanh@...dia.com>,
        linux-phy@...ts.infradead.org, linux-tegra@...r.kernel.org,
        linux-kernel@...r.kernel.org
Cc:     Saurabh Singh Sengar <ssengar@...rosoft.com>,
        Praveen Kumar <kumarpraveen@...ux.microsoft.com>
Subject: [PATCH] phy: tegra: xusb: Release device node reference

Platform device reference is retrieved using the device node using a call
to of_find_device_by_node(). Since we do not need to maintain the device
node reference further, we can release it back to the core.

Signed-off-by: Deepak R Varma <drv@...lo.com>
---

Please note: The patch proposal is compile tested using tegra defconfig.

 drivers/phy/tegra/xusb-tegra210.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/phy/tegra/xusb-tegra210.c b/drivers/phy/tegra/xusb-tegra210.c
index ebc8a7e21a31..d30de77515a3 100644
--- a/drivers/phy/tegra/xusb-tegra210.c
+++ b/drivers/phy/tegra/xusb-tegra210.c
@@ -3169,6 +3169,8 @@ tegra210_xusb_padctl_probe(struct device *dev,
 		goto out;
 	}
 
+	of_node_put(np);
+
 	if (!platform_get_drvdata(pdev))
 		return ERR_PTR(-EPROBE_DEFER);
 
-- 
2.34.1



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ