diff options
author | Rex Zhu <Rex.Zhu@amd.com> | 2018-10-12 16:26:11 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-10-16 22:08:08 +0200 |
commit | 3df27645395e8f79c0dc20a15cf1da61f376000d (patch) | |
tree | 935f9c29a514d10291d491a0643f67bba02e7261 /drivers/gpu/drm/amd | |
parent | drm/amd/display: fix bug of accessing invalid memory (diff) | |
download | linux-3df27645395e8f79c0dc20a15cf1da61f376000d.tar.xz linux-3df27645395e8f79c0dc20a15cf1da61f376000d.zip |
drm/amdgpu: Fix typo in amdgpu_vmid_mgr_init
fix a typo in for loop: i->j
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c index 3a072a7a39f0..df9b173c3d0b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c @@ -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); } } |