]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PM: domains: Fix alloc/free in dev_pm_domain_attach|detach_list()
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 2 Oct 2024 12:22:23 +0000 (14:22 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 10 Oct 2024 11:55:17 +0000 (13:55 +0200)
commit7738568885f2eaecfc10a3f530a2693e5f0ae3d0
treec7bdeaf7dc0d1f2f2a2d9e6e55b9f28d326531e8
parentfa36b4bc9234f1538580737a7d77a5344c9a4afe
PM: domains: Fix alloc/free in dev_pm_domain_attach|detach_list()

The dev_pm_domain_attach|detach_list() functions are not resource managed,
hence they should not use devm_* helpers to manage allocation/freeing of
data. Let's fix this by converting to the traditional alloc/free functions.

Fixes: 161e16a5e50a ("PM: domains: Add helper functions to attach/detach multiple PM domains")
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://lore.kernel.org/r/20241002122232.194245-3-ulf.hansson@linaro.org
drivers/base/power/common.c