* [PATCH 5.10.y] phy: tegra: xusb: Fix return value of tegra_xusb_find_port_node function
@ 2025-03-22 13:10 alvalan9
2025-03-22 21:51 ` Sasha Levin
0 siblings, 1 reply; 2+ messages in thread
From: alvalan9 @ 2025-03-22 13:10 UTC (permalink / raw)
To: gregkh, stable; +Cc: Miaoqian Lin, Thierry Reding, Vinod Koul, Alva Lan
From: Miaoqian Lin <linmq006@gmail.com>
[ Upstream commit 045a31b95509c8f25f5f04ec5e0dec5cd09f2c5f ]
callers of tegra_xusb_find_port_node() function only do NULL checking for
the return value. return NULL instead of ERR_PTR(-ENOMEM) to keep
consistent.
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20211213020507.1458-1-linmq006@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Alva Lan <alvalan9@foxmail.com>
---
drivers/phy/tegra/xusb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/phy/tegra/xusb.c b/drivers/phy/tegra/xusb.c
index 856397def89a..8bd8d1f8eba2 100644
--- a/drivers/phy/tegra/xusb.c
+++ b/drivers/phy/tegra/xusb.c
@@ -449,7 +449,7 @@ tegra_xusb_find_port_node(struct tegra_xusb_padctl *padctl, const char *type,
name = kasprintf(GFP_KERNEL, "%s-%u", type, index);
if (!name) {
of_node_put(ports);
- return ERR_PTR(-ENOMEM);
+ return NULL;
}
np = of_get_child_by_name(ports, name);
kfree(name);
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH 5.10.y] phy: tegra: xusb: Fix return value of tegra_xusb_find_port_node function
2025-03-22 13:10 [PATCH 5.10.y] phy: tegra: xusb: Fix return value of tegra_xusb_find_port_node function alvalan9
@ 2025-03-22 21:51 ` Sasha Levin
0 siblings, 0 replies; 2+ messages in thread
From: Sasha Levin @ 2025-03-22 21:51 UTC (permalink / raw)
To: stable; +Cc: alvalan9, Sasha Levin
[ Sasha's backport helper bot ]
Hi,
✅ All tests passed successfully. No issues detected.
No action required from the submitter.
The upstream commit SHA1 provided is correct: 045a31b95509c8f25f5f04ec5e0dec5cd09f2c5f
WARNING: Author mismatch between patch and upstream commit:
Backport author: alvalan9@foxmail.com
Commit author: Miaoqian Lin<linmq006@gmail.com>
Status in newer kernel trees:
6.13.y | Present (exact SHA1)
6.12.y | Present (exact SHA1)
6.6.y | Present (exact SHA1)
6.1.y | Present (exact SHA1)
5.15.y | Not found
Note: The patch differs from the upstream commit:
---
1: 045a31b95509c ! 1: 2a4b98a5147c0 phy: tegra: xusb: Fix return value of tegra_xusb_find_port_node function
@@ Metadata
## Commit message ##
phy: tegra: xusb: Fix return value of tegra_xusb_find_port_node function
+ [ Upstream commit 045a31b95509c8f25f5f04ec5e0dec5cd09f2c5f ]
+
callers of tegra_xusb_find_port_node() function only do NULL checking for
the return value. return NULL instead of ERR_PTR(-ENOMEM) to keep
consistent.
@@ Commit message
Acked-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20211213020507.1458-1-linmq006@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
+ Signed-off-by: Alva Lan <alvalan9@foxmail.com>
## drivers/phy/tegra/xusb.c ##
@@ drivers/phy/tegra/xusb.c: tegra_xusb_find_port_node(struct tegra_xusb_padctl *padctl, const char *type,
---
Results of testing on various branches:
| Branch | Patch Apply | Build Test |
|---------------------------|-------------|------------|
| stable/linux-5.10.y | Success | Success |
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-22 21:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-22 13:10 [PATCH 5.10.y] phy: tegra: xusb: Fix return value of tegra_xusb_find_port_node function alvalan9
2025-03-22 21:51 ` Sasha Levin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox