diff options
author | Junwei Zhang <Jerry.Zhang@amd.com> | 2017-03-16 16:09:24 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-03-29 23:54:02 -0400 |
commit | 27f6d61036a8cb25d144c8bcc6c15e2b54cec566 (patch) | |
tree | 6ff3bb71d46dae9798faca9b06ceecda7bfd02ae /drivers/gpu/drm/amd/scheduler/gpu_scheduler.c | |
parent | 80f95c579d800fa22e9e57ecb3d50b9e93bc1f82 (diff) |
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/scheduler/gpu_scheduler.c')
0 files changed, 0 insertions, 0 deletions