diff options
| author | Srinivasan Shanmugam <srinivasan.shanmugam@amd.com> | 2026-09-15 12:10:07 +0530 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-09-23 12:59:30 -0400 |
| commit | 5dc3f516cb610dd626178f36f9b25782e7a842dc (patch) | |
| tree | 3531f9658372513a243f8e0e47d9f09044524f34 /tools/lib/python/kdoc/python_version.py | |
| parent | 1f2a84c2922848d14e67620f3790d0240f0a876e (diff) | |
drm/amdgpu: Fix NULL dereference in amdgpu_ualink_info_set_accel_state
Commit 0a6da5dcfe42 ("drm/amdgpu: Improve ualink state transitions")
introduced an access to info->accel_state before checking whether info
is NULL.
Move the access after the NULL check to avoid a potential NULL pointer
dereference.
Fixes: 0a6da5dcfe42 ("drm/amdgpu: Improve ualink state transitions")
Reported-by: Dan Carpenter <error27@gmail.com>
Cc: Lijo Lazar <lijo.lazar@amd.com>
Cc: Felix Kuehling <felix.kuehling@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
