From: jsg Date: Thu, 24 Feb 2022 12:47:29 +0000 (+0000) Subject: drm/amdgpu: fix logic inversion in check X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=fb4ebca02347be6b01b39c9da543a7ffd164647d;p=openbsd drm/amdgpu: fix logic inversion in check From Christian Koenig 0fec53c5dca8a218e20b1d3964db23391a689dff in linux 5.15.y/5.15.25 e8ae38720e1a685fd98cfa5ae118c9d07b45ca79 in mainline linux --- diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_ttm.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_ttm.c index e0116150b54..dad8610b7d8 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_ttm.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_ttm.c @@ -1949,7 +1949,7 @@ int amdgpu_copy_buffer(struct amdgpu_ring *ring, uint64_t src_offset, unsigned i; int r; - if (direct_submit && !ring->sched.ready) { + if (!direct_submit && !ring->sched.ready) { DRM_ERROR("Trying to move memory with ring turned off.\n"); return -EINVAL; }