aboutsummaryrefslogtreecommitdiffstats
path: root/samples/connector/git:/git.zx2c4.com/ssh:/git@git.zx2c4.com
diff options
context:
space:
mode:
authorAndré Draszik <andre.draszik@linaro.org>2025-10-16 16:58:37 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2025-10-21 15:52:14 +0200
commit90c82941adf1986364e0f82c35cf59f2bf5f6a1d (patch)
tree79ba90bd4a02c5f842702abfa186e0f5ed6ba2cc /samples/connector/git:/git.zx2c4.com/ssh:/git@git.zx2c4.com
parentLinux 6.18-rc2 (diff)
pmdomain: samsung: plug potential memleak during probe
of_genpd_add_provider_simple() could fail, in which case this code leaks the domain name, pd->pd.name. Use devm_kstrdup_const() to plug this leak. As a side-effect, we can simplify existing error handling. Fixes: c09a3e6c97f0 ("soc: samsung: pm_domains: Convert to regular platform driver") Cc: stable@vger.kernel.org Reviewed-by: Peter Griffin <peter.griffin@linaro.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: André Draszik <andre.draszik@linaro.org> Tested-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'samples/connector/git:/git.zx2c4.com/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions