diff options
| author | André Draszik <[email protected]> | 2025-10-16 15:58:37 +0000 |
|---|---|---|
| committer | Ulf Hansson <[email protected]> | 2025-10-21 13:52:14 +0000 |
| commit | 90c82941adf1986364e0f82c35cf59f2bf5f6a1d (patch) | |
| tree | 79ba90bd4a02c5f842702abfa186e0f5ed6ba2cc /net/unix/af_unix.c | |
| parent | Linux 6.18-rc2 (diff) | |
| download | kernel-90c82941adf1986364e0f82c35cf59f2bf5f6a1d.tar.gz kernel-90c82941adf1986364e0f82c35cf59f2bf5f6a1d.zip | |
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: [email protected]
Reviewed-by: Peter Griffin <[email protected]>
Reviewed-by: Krzysztof Kozlowski <[email protected]>
Signed-off-by: André Draszik <[email protected]>
Tested-by: Marek Szyprowski <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
