Loading
pmdomain: core: Add missing put_device()
stable inclusion from stable-v6.6.69 commit 36a6e8aeae4a41767bb59f56b100c8cc9ffae2cb category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IBNEPJ Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=36a6e8aeae4a41767bb59f56b100c8cc9ffae2cb -------------------------------- [ Upstream commit b8f7bbd1f4ecff6d6277b8c454f62bb0a1c6dbe4 ] 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: 401ea157 ("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> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Wen Zhiwei <wenzhiwei@kylinos.cn>