Decrement hsa_init ref counter when init fails.

Change-Id: If9376344d4b559e601932d070731132c8450104e


[ROCm/ROCR-Runtime commit: c9f0427cb0]
Ta zmiana jest zawarta w:
%! (template.HTML=Sean Keely)złożyło 2017-07-07 21:21:03 -05:00
1 rodzic ce82829fc1
złożenie cafbebc2a5
Plik 1 zmieniony
+1
@@ -113,6 +113,7 @@ hsa_status_t Runtime::Acquire() {
hsa_status_t status = runtime_singleton_->Load();
if (status != HSA_STATUS_SUCCESS) {
runtime_singleton_->ref_count_--;
return HSA_STATUS_ERROR_OUT_OF_RESOURCES;
}
}