drm/amdgpu: fix typo of domain fallback
authorChunming Zhou <david1.zhou@amd.com>
Fri, 23 Mar 2018 10:42:17 +0000 (18:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 3 Apr 2018 17:52:56 +0000 (12:52 -0500)
Signed-off-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c

index fac4b6067efd6377f3a2681b9fd050878db21c13..5ad985c40d49b2369f1db889085653989cc628b3 100644 (file)
@@ -429,7 +429,7 @@ retry:
                if (bo->flags & AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED) {
                        bo->flags &= ~AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED;
                        goto retry;
-               } else if (domains != bo->preferred_domains) {
+               } else if (domains != bo->allowed_domains) {
                        domains = bo->allowed_domains;
                        goto retry;
                }