Hello Lijo Lazar,

Commit 0a6da5dcfe42 ("drm/amdgpu: Improve ualink state transitions")
from Jun 9, 2026, leads to the following Smatch complaint:

    drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c:169 
amdgpu_ualink_info_set_accel_state()
    warn: variable dereferenced before check 'info' (see line 164)

drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c
   163  {
   164          enum amdgpu_ualink_accel_state cur = info->accel_state;
                                                     ^^^^^^^^^^^^^^^^^
The patch adds a new dereference

   165          enum amdgpu_ualink_accel_state target;
   166          bool ppod_validated;
   167          bool vpod_validated;
   168  
   169          if (!info)
                    ^^^^^
The old code assumed info could be NULL.

   170                  return;
   171  

This email is a free service from the Smatch-CI project [smatch.sf.net].

regards,
dan carpenter

Reply via email to