Fix address space leak in __fmm_release

Use the object size when freeing address space, instead of the
parameter passed in by the caller. The parameter may be incorrect
due to app or runtime bugs, or when the buffers is an AQL ring
buffer with double mapping workaround.


Change-Id: I00bb31d4520ef969a49d6d5ea723e8a33418acc3
Этот коммит содержится в:
Felix Kuehling
2016-02-23 19:01:51 -05:00
родитель 8a0161d6bb
Коммит 006f3ee41b
3 изменённых файлов: 16 добавлений и 26 удалений
+1 -1
Просмотреть файл
@@ -181,7 +181,7 @@ hsaKmtFreeMemory(
{
CHECK_KFD_OPEN();
fmm_release(MemoryAddress, SizeInBytes);
fmm_release(MemoryAddress);
return HSAKMT_STATUS_SUCCESS;
}