mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
pmdomain: core: Add missing put_device()
When removing a genpd we don't clean up the genpd->dev correctly. Let's add
the missing put_device() in genpd_free_data() to fix this.
Fixes: 401ea1572d
("PM / Domain: Add struct device to genpd")
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Message-ID: <20241122134207.157283-2-ulf.hansson@linaro.org>
This commit is contained in:
parent
f00582aa4a
commit
b8f7bbd1f4
1 changed files with 1 additions and 0 deletions
|
@ -2183,6 +2183,7 @@ free:
|
|||
|
||||
static void genpd_free_data(struct generic_pm_domain *genpd)
|
||||
{
|
||||
put_device(&genpd->dev);
|
||||
if (genpd_is_cpu_domain(genpd))
|
||||
free_cpumask_var(genpd->cpus);
|
||||
if (genpd->free_states)
|
||||
|
|
Loading…
Add table
Reference in a new issue