aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
diff options
context:
space:
mode:
authorSasha Levin <[email protected]>2025-08-05 12:58:20 +0000
committerLinus Torvalds <[email protected]>2025-08-06 01:57:14 +0000
commit7881cd6886a89eda848192d3f5759ce08672e084 (patch)
tree3b767e95e64923f5ddb9d7100a36bf1852b2fae5 /drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
parentMerge tag 'perf-fixes-27504' of git://git.kernel.org/pub/scm/linux/kernel/git... (diff)
downloadkernel-7881cd6886a89eda848192d3f5759ce08672e084.tar.gz
kernel-7881cd6886a89eda848192d3f5759ce08672e084.zip
media: venus: Fix OPP table error handling
The venus driver fails to check if dev_pm_opp_find_freq_{ceil,floor}() returns an error pointer before calling dev_pm_opp_put(). This causes a crash when OPP tables are not present in device tree. Unable to handle kernel access to user memory outside uaccess routines at virtual address 000000000000002e ... pc : dev_pm_opp_put+0x1c/0x4c lr : core_clks_enable+0x4c/0x16c [venus_core] Add IS_ERR() checks before calling dev_pm_opp_put() to avoid dereferencing error pointers. Fixes: b179234b5e59 ("media: venus: pm_helpers: use opp-table for the frequency") Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c')
0 files changed, 0 insertions, 0 deletions