update libdmabufheap/src/dmabuf_alloc.c.

Signed-off-by: 李月关 <liyueguan@huawei.com>
This commit is contained in:
李月关 2024-11-21 08:47:37 +00:00 committed by Gitee
parent 16c807f16a
commit c301d38e4f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -76,7 +76,7 @@ int DmabufHeapOpen(const char *heapName)
int fd = open(heapPath, O_RDONLY | O_CLOEXEC);
if (fd < 0) {
HILOG_ERROR(LOG_CORE, "file open faild, heapName = %s, errno = %d.", heapName, errno);
return -errno;
return fd;
}
long newFd = fd;
memtrace((void *)newFd, HEAP_NAME_MAX_LEN, "DmabufHeap", true);