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
This commit is contained in:
foreman
2018-04-25 11:40:42 -04:00
parent b785abe728
commit 3416ad385d
+1 -1
Vedi File
@@ -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;