summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorAndré Draszik <andre.draszik@linaro.org>2025-10-16 18:58:37 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-11-24 12:37:49 +0300
commit63eaa6cd7385c1c8cff5ac1ccc60cc5f06e4a980 (patch)
tree981a925aee27581c2ba41aa1226d433d3b2c6857 /scripts/gdb/linux/utils.py
parentae65e73aeef64c894a72fd8b6fba4acb5ef7958f (diff)
downloadlinux-63eaa6cd7385c1c8cff5ac1ccc60cc5f06e4a980.tar.xz
pmdomain: samsung: plug potential memleak during probe
commit 90c82941adf1986364e0f82c35cf59f2bf5f6a1d upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions