summaryrefslogtreecommitdiff
path: root/rust/helpers/device.c
diff options
context:
space:
mode:
authorSunil Khatri <sunil.khatri@amd.com>2025-07-09 12:46:18 +0530
committerChristian König <christian.koenig@amd.com>2025-07-09 10:15:30 +0200
commit03d5236014a5d298c26b2ca80e5834aa844574b3 (patch)
treed2e91b7c92cd5f31f82d89c77771f02835e536ca /rust/helpers/device.c
parent8f9abaff41de5b5f977b6d0372073563241cb5df (diff)
drm/amdgpu: fix the logic to validate fpriv and root bo
Fix the smatch warning, smatch warnings: drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:2146 amdgpu_pt_info_read() error: we previously assumed 'fpriv' could be null (see line 2146) "if (!fpriv && !fpriv->vm.root.bo)", It has to be an OR condition rather than an AND which makes an NULL dereference in case fpriv is NULL. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202507090525.9rDWGhz3-lkp@intel.com/ Signed-off-by: Sunil Khatri <sunil.khatri@amd.com> Link: https://lore.kernel.org/r/20250709071618.591866-1-sunil.khatri@amd.com Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'rust/helpers/device.c')
0 files changed, 0 insertions, 0 deletions