]> Gentwo Git Trees - linux/.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)
committerChanwoo Choi <cw00.choi@samsung.com>
Sun, 23 Nov 2025 15:02:07 +0000 (00:02 +0900)
commit26dd44a40096468396b6438985d8e44e0743f64c
tree2afd71788d57b538a888c84a3eef88a45dc61c6c
parent447c4e8338dbfad517769d26b53d633b88d51184
PM / devfreq: hisi: Fix potential UAF in OPP handling

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/
drivers/devfreq/hisi_uncore_freq.c