Skip to content
Snippets Groups Projects
Commit 488975c2 authored by Harish Chegondi's avatar Harish Chegondi Committed by Lucas De Marchi
Browse files

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: 9a0b11d4 ("drm/xe/eustall: Add support to init, enable and disable EU stall sampling")
Signed-off-by: default avatarHarish Chegondi <harish.chegondi@intel.com>
Reviewed-by: default avatarAshutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: default avatarAshutosh Dixit <ashutosh.dixit@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/eae49a414a7314921108e0388810aaee6261ad92.1741800396.git.harish.chegondi@intel.com


(cherry picked from commit 278469ff)
Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
parent 5da39dce
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment