mirror of
https://gitee.com/openharmony/commonlibrary_memory_utils
synced 2024-11-27 01:11:24 +00:00
update libdmabufheap/src/dmabuf_alloc.c.
Signed-off-by: 李月关 <liyueguan@huawei.com>
This commit is contained in:
parent
16c807f16a
commit
c301d38e4f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user