commit | b717fa5cb1a1aae9ea744a3b61e9d9aa1d258c9c | [log] [tgz] |
---|---|---|
author | Christian König <christian.koenig@amd.com> | Fri Apr 03 15:56:12 2020 +0200 |
committer | Alex Deucher <alexander.deucher@amd.com> | Tue Apr 28 16:20:30 2020 -0400 |
tree | ca0e95b2cabc7ca620e355f8b067dfc7180109ee | |
parent | 9504578314a70e6d96ee812dc93b5b5c9514b988 [diff] |
drm/amdgpu: fix size calculation in amdgpu_ttm_copy_mem_to_mem When the node is larger than 4GB we overrun the size calculation. Fix this by correctly limiting the size to the window as well. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>