summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2020-06-26 13:39:59 +0300
committerRoland Scheidegger <sroland@vmware.com>2020-08-11 03:16:02 +0200
commit4437c1152ce0e57ab8f401aa696ea6291cc07ab1 (patch)
treefb42b630996b00470a37d568b0726cef8c3c1bdd /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parent1d2c0c565bc0da25f5e899a862fb58e612b222df (diff)
drm/vmwgfx: Fix two list_for_each loop exit tests
These if statements are supposed to be true if we ended the list_for_each_entry() loops without hitting a break statement but they don't work. In the first loop, we increment "i" after the "if (i == unit)" condition so we don't necessarily know that "i" is not equal to unit at the end of the loop. In the second loop we exit when mode is not pointing to a valid drm_display_mode struct so it doesn't make sense to check "mode->type". Fixes: a278724aa23c ("drm/vmwgfx: Implement fbdev on kms v2") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com> Signed-off-by: Roland Scheidegger <sroland@vmware.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions