mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
drm/amdgpu: Fix NULL dereference in amdgpu_ualink_info_set_accel_state
Commit0a6da5dcfe("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:0a6da5dcfe("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>
This commit is contained in:
parent
1f2a84c292
commit
5dc3f516cb
1 changed files with 3 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue