From bd93eecc6484461dddbed5da8e7c5e4ac25bd0fa Mon Sep 17 00:00:00 2001 From: Felix Kuehling Date: Tue, 27 Oct 2015 15:30:53 -0400 Subject: [PATCH] Use correct aperture for _fmm_unmap_from_gpu_scratch Passing in the wrong aperture resulted in failure to unmap scratch. Change-Id: Icd7423abfb1bcc773b33becffcbefc233f4ff340 --- src/fmm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fmm.c b/src/fmm.c index 0dd26c46f2..ce4a40b8e6 100644 --- a/src/fmm.c +++ b/src/fmm.c @@ -1309,7 +1309,7 @@ int fmm_unmap_from_gpu(void *address) if ((address >= gpu_mem[i].scratch_physical.base) && (address <= gpu_mem[i].scratch_physical.limit)) return _fmm_unmap_from_gpu_scratch(gpu_mem[i].gpu_id, - &gpu_mem[i].gpuvm_aperture, + &gpu_mem[i].scratch_physical, address); if ((address >= gpu_mem[i].gpuvm_aperture.base) &&