提交 82644f24 编写于 作者: T tangshihua

bugfix unmap

Signed-off-by: Ntangshihua <tangshihua@huawei.com>
上级 bb69adb0
...@@ -174,6 +174,7 @@ int32_t MockIDevice::ReleaseBuffer(const SharedBuffer &buffer) ...@@ -174,6 +174,7 @@ int32_t MockIDevice::ReleaseBuffer(const SharedBuffer &buffer)
std::lock_guard<std::mutex> lock(m_mtx); std::lock_guard<std::mutex> lock(m_mtx);
auto ash = m_ashmems[buffer.fd]; auto ash = m_ashmems[buffer.fd];
ash->UnmapAshmem(); ash->UnmapAshmem();
ash->CloseAshmem();
return HDF_SUCCESS; return HDF_SUCCESS;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册