aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorXiaomeng Tong <[email protected]>2022-03-20 15:07:33 +0000
committerMartin K. Petersen <[email protected]>2022-04-07 02:40:41 +0000
commitbfb7789bcbd901caead43861461bc8f334c90d3b (patch)
tree89932197c4ad0589f747fb89c868de37b1b1d684 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentscsi: sd: Clean up gendisk if device_add_disk() failed (diff)
downloadkernel-bfb7789bcbd901caead43861461bc8f334c90d3b.tar.gz
kernel-bfb7789bcbd901caead43861461bc8f334c90d3b.zip
scsi: ufs: ufshpb: Fix a NULL check on list iterator
The list iterator is always non-NULL so the check 'if (!rgn)' is always false and the dev_err() is never called. Move the check outside the loop and determine if 'victim_rgn' is NULL, to fix this bug. Link: https://lore.kernel.org/r/[email protected] Fixes: 4b5f49079c52 ("scsi: ufs: ufshpb: L2P map management for HPB read") Reviewed-by: Daejun Park <[email protected]> Signed-off-by: Xiaomeng Tong <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions