P4 to Git Change 1546206 by gandryey@gera-w8 on 2018/04/25 11:32:37
SWDEV-151852 - [CQE OCL][DTB-BLOCKER][VEGA10][WIN][LNX][QR] Observed crash while running Multiple device context test due to FAULTY CL#1544622
- Add a check for nullptr in case if virtual device object was destroyed before memory allocation
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palconstbuf.cpp#10 edit
[ROCm/clr commit: 3416ad385d]
Этот коммит содержится в:
@@ -21,7 +21,7 @@ ManagedBuffer::ManagedBuffer(VirtualGPU& gpu, uint32_t size)
|
||||
// ================================================================================================
|
||||
void ManagedBuffer::release() {
|
||||
for (auto it : buffers_) {
|
||||
if (it->data() != nullptr) {
|
||||
if ((it != nullptr) && (it->data() != nullptr)) {
|
||||
it->unmap(&gpu_);
|
||||
}
|
||||
delete it;
|
||||
|
||||
Ссылка в новой задаче
Block a user