diff options
| author | Srinivasan Shanmugam <[email protected]> | 2024-07-22 16:44:40 +0530 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-07-23 17:43:13 -0400 |
| commit | c395fd47d1565bd67671f45cca281b3acc2c31ef (patch) | |
| tree | ccd5a449cc48989ce149d96c51e2b5faa610527b /tools/perf/scripts/python/task-analyzer.py | |
| parent | 8284951a6e79c6806c675e5f68a4cd425dd56bc4 (diff) | |
drm/amd/display: Add NULL check for clk_mgr in dcn32_init_hw
This commit addresses a potential null pointer dereference issue in the
`dcn32_init_hw` function. The issue could occur when `dc->clk_mgr` is
null.
The fix adds a check to ensure `dc->clk_mgr` is not null before
accessing its functions. This prevents a potential null pointer
dereference.
Reported by smatch:
drivers/gpu/drm/amd/amdgpu/../display/dc/hwss/dcn32/dcn32_hwseq.c:961 dcn32_init_hw() error: we previously assumed 'dc->clk_mgr' could be null (see line 782)
Cc: Tom Chung <[email protected]>
Cc: Rodrigo Siqueira <[email protected]>
Cc: Roman Li <[email protected]>
Cc: Alex Hung <[email protected]>
Cc: Aurabindo Pillai <[email protected]>
Cc: Harry Wentland <[email protected]>
Cc: Hamza Mahfooz <[email protected]>
Signed-off-by: Srinivasan Shanmugam <[email protected]>
Reviewed-by: Alex Hung <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions