Fix dgpu_vm_limit

Break from the for-loop once dgpu VM range is found, otherwise the
length is reduced by half

Change-Id: Ie602054c16ea69ea1cbb75e804ead551bc3615c0
Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
This commit is contained in:
Harish Kasiviswanathan
2015-11-23 11:49:11 -05:00
parent a5bc8360e8
commit 5a55383baf
+3 -1
View File
@@ -1441,8 +1441,10 @@ static HSAKMT_STATUS dgpu_mem_init(uint32_t gpu_mem_id, void **base, void **limi
(HSAint64)ret_addr) >> 30));
munmap(ret_addr, len);
continue;
} else
} else {
found = true;
break;
}
}
if (!found) {