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
This commit is contained in:
+1
-1
@@ -181,7 +181,7 @@ hsaKmtFreeMemory(
|
||||
{
|
||||
CHECK_KFD_OPEN();
|
||||
|
||||
fmm_release(MemoryAddress, SizeInBytes);
|
||||
fmm_release(MemoryAddress);
|
||||
return HSAKMT_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user