[PATCH 03/10] pmdomain: samsung: use to devm_kstrdup_const() to simplify error handling

Krzysztof Kozlowski krzk at kernel.org
Wed Oct 8 17:13:18 PDT 2025


On 07/10/2025 01:43, André Draszik wrote:
> Convert to using devm_kstrdup_const() so as to simplify cleanup during
> error handling.


This is either a fix (then describe the fixed issue and add Fixed tag)
or you change the logic, not only simplify.

Previously on of_genpd_add_provider_simple() the memory was not
kfree_const. Now it will be.


Best regards,
Krzysztof



More information about the linux-arm-kernel mailing list