libgralloc: Store the correct fd when mapping the framebuffer.
Store the actual and not the dup'd fd when mapping the framebuffer. Change-Id: Ibca65a8f4c4db374dc23e8fee216ec5c36a9c01c
This commit is contained in:
parent
9987a6a6fa
commit
31e5714e87
@ -1001,7 +1001,7 @@ int mapFrameBufferLocked(struct private_module_t* module)
|
||||
|
||||
int err;
|
||||
size_t fbSize = roundUpToPageSize(finfo.line_length * info.yres_virtual);
|
||||
module->framebuffer = new private_handle_t(dup(fd), fbSize,
|
||||
module->framebuffer = new private_handle_t(fd, fbSize,
|
||||
private_handle_t::PRIV_FLAGS_USES_PMEM, BUFFER_TYPE_UI, module->fbFormat, info.xres, info.yres);
|
||||
|
||||
module->numBuffers = info.yres_virtual / info.yres;
|
||||
|
Loading…
Reference in New Issue
Block a user