]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PM / devfreq: hisi: Fix potential UAF in OPP handling
authorPengjie Zhang <zhangpengjie2@huawei.com>
Mon, 15 Sep 2025 06:21:35 +0000 (14:21 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:11 +0000 (14:03 +0100)
commit469b0b8ce08818f3e4f01d2fa8d0dadeab501e1f
tree035dc73f3a07044560632ae3b9c3b5d00a78c84a
parent2873d804b4f342c92bd0ff1a151d19e72650430b
PM / devfreq: hisi: Fix potential UAF in OPP handling

[ Upstream commit 26dd44a40096468396b6438985d8e44e0743f64c ]

Ensure all required data is acquired before calling dev_pm_opp_put(opp)
to maintain correct resource acquisition and release order.

Fixes: 7da2fdaaa1e6 ("PM / devfreq: Add HiSilicon uncore frequency scaling driver")
Signed-off-by: Pengjie Zhang <zhangpengjie2@huawei.com>
Reviewed-by: Jie Zhan <zhanjie9@hisilicon.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Link: https://patchwork.kernel.org/project/linux-pm/patch/20250915062135.748653-1-zhangpengjie2@huawei.com/
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/devfreq/hisi_uncore_freq.c