aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
diff options
context:
space:
mode:
authorHarish Chegondi <[email protected]>2025-03-12 17:31:20 +0000
committerLucas De Marchi <[email protected]>2025-03-20 20:01:07 +0000
commit488975c2d3e171bd07ec5caaf3c9cbc6a0746e2d (patch)
tree8129f59f29ba5378b80350168261a63fcc688733 /drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
parentMerge tag 'drm-xe-next-fixes-2025-03-12' of https://gitlab.freedesktop.org/dr... (diff)
downloadkernel-488975c2d3e171bd07ec5caaf3c9cbc6a0746e2d.tar.gz
kernel-488975c2d3e171bd07ec5caaf3c9cbc6a0746e2d.zip
drm/xe/eustall: Fix a possible pointer dereference after free
If devm_add_action_or_reset() isn't successful, xe_eu_stall_fini() is invoked. So, unsuccessful return from devm_add_action_or_reset() shouldn't dereference gt->eu_stall as xe_eu_stall_fini() already frees it. Fix this issue. Fixes: 9a0b11d4cf3b ("drm/xe/eustall: Add support to init, enable and disable EU stall sampling") Signed-off-by: Harish Chegondi <[email protected]> Reviewed-by: Ashutosh Dixit <[email protected]> Signed-off-by: Ashutosh Dixit <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/eae49a414a7314921108e0388810aaee6261ad92.1741800396.git.harish.chegondi@intel.com (cherry picked from commit 278469ff569e1082d56b4a7af26fbaecef9fbf3b) Signed-off-by: Lucas De Marchi <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c')
0 files changed, 0 insertions, 0 deletions