diff options
| author | 2017-03-16 16:09:24 +0800 | |
|---|---|---|
| committer | 2017-03-29 23:54:02 -0400 | |
| commit | 27f6d61036a8cb25d144c8bcc6c15e2b54cec566 (patch) | |
| tree | 6ff3bb71d46dae9798faca9b06ceecda7bfd02ae /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |
| parent | drm/amdgpu: add a VM mapping replace operation v2 (diff) | |
| download | wireguard-linux-27f6d61036a8cb25d144c8bcc6c15e2b54cec566.tar.xz wireguard-linux-27f6d61036a8cb25d144c8bcc6c15e2b54cec566.zip | |
drm/amdgpu: fix before and after mapping judgement for replace mapping
If the before mapping is 1 page size, so its start and last will be same.
Thus below condition will become false, then to free the before mapping.
> if (before->it.start != before->it.last)
But in this case, we need the before mapping of 1 page size.
So does after mapping.
Signed-off-by: Junwei Zhang <Jerry.Zhang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
0 files changed, 0 insertions, 0 deletions
