diff options
| author | Roman Demidov <roman.demidov.nn@gmail.com> | 2026-09-29 17:20:58 +0300 |
|---|---|---|
| committer | Rob Clark <robin.clark@oss.qualcomm.com> | 2026-10-05 08:13:48 -0700 |
| commit | 8128ae7af6b4dc95e486c5c0a80839a069df578e (patch) | |
| tree | 767340cdc429028616c88db469165cf457cac725 /tools/lib/python/kdoc/python_version.py | |
| parent | 65222fbe88896d7999b6c7dd779ecb52889ffd66 (diff) | |
drm/msm/a6xx: fix use-after-free of OPP in a6xx_pm_resume
The OPP reference obtained via dev_pm_opp_find_freq_ceil() is dropped
with dev_pm_opp_put() before being passed to dev_pm_opp_set_opp(). If
the reference count reaches zero, the OPP object may be freed, leading
to a use-after-free when dev_pm_opp_set_opp() dereferences it.
Fix the order of calls: first use the OPP to set the required
performance state, then release the reference.
Fixes: 5a903a44a984 ("drm/msm/a6xx: Introduce GMU wrapper support")
Signed-off-by: Roman Demidov <roman.demidov.nn@gmail.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/757104/
Message-ID: <20260929142103.81854-1-roman.demidov.nn@gmail.com>
Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
