SWDEV-447384 - Handle double free case.
Change-Id: I7a1d45c2f7510180911507d56ec863982b161f6c
This commit is contained in:
committed by
Jaydeepkumar Patel
parent
6311ed8a8e
commit
43e2bb6126
@@ -171,6 +171,8 @@ hipError_t hipFreeAsync(void* dev_ptr, hipStream_t stream) {
|
|||||||
// The current implementation has unconditional waits
|
// The current implementation has unconditional waits
|
||||||
return ihipFree(dev_ptr);
|
return ihipFree(dev_ptr);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
HIP_RETURN(hipErrorInvalidValue);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!AMD_DIRECT_DISPATCH) {
|
if (!AMD_DIRECT_DISPATCH) {
|
||||||
|
|||||||
Reference in New Issue
Block a user