drm/amdgpu: fix list add issue in vram reserve
authorTao Zhou <tao.zhou1@amd.com>
Sun, 30 Jan 2022 07:17:32 +0000 (15:17 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Feb 2022 23:01:16 +0000 (18:01 -0500)
commit4e781873fa1359c9a85559b6da6548ac5b07ceb5
tree4c6788141568938eceed1564205762426e66a1e6
parenta50b048276c4e1bc6f7e869c99b6bdc91b4e237f
drm/amdgpu: fix list add issue in vram reserve

The parameter order in the list_add_tail is incorrect, it causes the
reuse of ras reserved page.

Signed-off-by: Tao Zhou <tao.zhou1@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_vram_mgr.c