]> Git Repo - linux.git/commitdiff
drm/amdgpu: Fix typo in amdgpu_vmid_mgr_init
authorRex Zhu <[email protected]>
Fri, 12 Oct 2018 14:26:11 +0000 (22:26 +0800)
committerAlex Deucher <[email protected]>
Tue, 16 Oct 2018 20:08:08 +0000 (15:08 -0500)
fix a typo in for loop: i->j

Reviewed-by: Christian König <[email protected]>
Signed-off-by: Rex Zhu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Cc: [email protected]
drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c

index 3a072a7a39f0faba89936f5735b349e282cf229a..df9b173c3d0b000462ce0731bbe2695c92f35d59 100644 (file)
@@ -574,7 +574,7 @@ void amdgpu_vmid_mgr_init(struct amdgpu_device *adev)
                /* skip over VMID 0, since it is the system VM */
                for (j = 1; j < id_mgr->num_ids; ++j) {
                        amdgpu_vmid_reset(adev, i, j);
-                       amdgpu_sync_create(&id_mgr->ids[i].active);
+                       amdgpu_sync_create(&id_mgr->ids[j].active);
                        list_add_tail(&id_mgr->ids[j].list, &id_mgr->ids_lru);
                }
        }
This page took 0.051835 seconds and 4 git commands to generate.