From e37b8020fe15e27b6c2c75b254c3fdbf23dc60a0 Mon Sep 17 00:00:00 2001 From: Qinyun Tan Date: Tue, 27 Feb 2024 14:35:16 +0800 Subject: [PATCH] anolis: drviers: Revert "phy: tegra: xusb: Fix return value of tegra_xusb_find_port_node function" ANBZ: #4408 CVE-2023-23000 is already fixed in commit b0bceb5e24d1bd1c89c75565f76c40cdcc104d7d, just revert this commit. This reverts commit 0a12be0e8d2cb057d2c7bdf7429d225f793e0410. Revert incorrect fixes for CVE-2023-23000. Fixes: CVE-2023-23000 Signed-off-by: Qinyun Tan --- 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 90baad0af24d..9e8fa1834a15 100644 --- a/drivers/phy/tegra/xusb.c +++ b/drivers/phy/tegra/xusb.c @@ -385,7 +385,7 @@ struct tegra_xusb_lane *tegra_xusb_find_lane(struct tegra_xusb_padctl *padctl, name = kasprintf(GFP_KERNEL, "%s-%u", type, index); if (!name) - return NULL; + return ERR_PTR(-ENOMEM); list_for_each_entry(lane, &padctl->lanes, list) { if (strcmp(lane->soc->name, name) == 0) { -- Gitee