Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

interconnect: exynos: handle node name allocation failure

Add the missing error handling in case node name allocation ever fails.

Fixes: 2f95b9d5cf0b ("interconnect: Add generic interconnect driver for Exynos SoCs")
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20250623142437.23068-1-johan+linaro@kernel.org
Signed-off-by: Georgi Djakov <djakov@kernel.org>

authored by

Johan Hovold and committed by
Georgi Djakov
b44f12ae 886a94f0

+5
+5
drivers/interconnect/samsung/exynos.c
··· 134 134 priv->node = icc_node; 135 135 icc_node->name = devm_kasprintf(&pdev->dev, GFP_KERNEL, "%pOFn", 136 136 bus_dev->of_node); 137 + if (!icc_node->name) { 138 + icc_node_destroy(pdev->id); 139 + return -ENOMEM; 140 + } 141 + 137 142 if (of_property_read_u32(bus_dev->of_node, "samsung,data-clock-ratio", 138 143 &priv->bus_clk_ratio)) 139 144 priv->bus_clk_ratio = EXYNOS_ICC_DEFAULT_BUS_CLK_RATIO;