Skip to content

Commit e8ae387

Browse files
ChristianKoenigAMDalexdeucher
authored andcommitted
drm/amdgpu: fix logic inversion in check
We probably never trigger this, but the logic inside the check is inverted. Signed-off-by: Christian König <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent e55a3ae commit e8ae387

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1904,7 +1904,7 @@ int amdgpu_copy_buffer(struct amdgpu_ring *ring, uint64_t src_offset,
19041904
unsigned i;
19051905
int r;
19061906

1907-
if (direct_submit && !ring->sched.ready) {
1907+
if (!direct_submit && !ring->sched.ready) {
19081908
DRM_ERROR("Trying to move memory with ring turned off.\n");
19091909
return -EINVAL;
19101910
}

0 commit comments

Comments
 (0)