Return error in canAccessPeer when P2P appendMemoryCopy fails

Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
This commit is contained in:
Raiyan Latif
2021-12-06 18:12:47 +00:00
committed by Compute-Runtime-Automation
parent 1dd9e969f3
commit abb91a7dae
7 changed files with 164 additions and 11 deletions

View File

@@ -634,7 +634,6 @@ GraphicsAllocation *DrmMemoryManager::createGraphicsAllocationFromSharedHandle(o
if (ret != 0) {
[[maybe_unused]] int err = errno;
PRINT_DEBUG_STRING(DebugManager.flags.PrintDebugMessages.get(), stderr, "ioctl(PRIME_FD_TO_HANDLE) failed with %d. errno=%d(%s)\n", ret, err, strerror(err));
DEBUG_BREAK_IF(ret != 0);
return nullptr;
}