diff --git a/exynos4/hal/libgralloc_ump/alloc_device.cpp b/exynos4/hal/libgralloc_ump/alloc_device.cpp index 2110f8d8..05df8d12 100644 --- a/exynos4/hal/libgralloc_ump/alloc_device.cpp +++ b/exynos4/hal/libgralloc_ump/alloc_device.cpp @@ -240,7 +240,7 @@ static int gralloc_alloc_buffer(alloc_device_t* dev, size_t size, int usage, private_handle_rect *psFRect; psRect = (private_handle_rect *)calloc(1, sizeof(private_handle_rect)); psRect->handle = (int)hnd->ump_id; - psRect->stride = (int)hnd->stride_raw; + psRect->stride = stride_raw; psFRect = find_last_rect((int)hnd->ump_id); psFRect->next = psRect; } diff --git a/exynos4/hal/libgralloc_ump/gralloc_module.cpp b/exynos4/hal/libgralloc_ump/gralloc_module.cpp index 27a930d7..3bbb8319 100644 --- a/exynos4/hal/libgralloc_ump/gralloc_module.cpp +++ b/exynos4/hal/libgralloc_ump/gralloc_module.cpp @@ -223,8 +223,6 @@ static int gralloc_register_buffer(gralloc_module_t const* module, buffer_handle psFRect->next = psRect; } #endif - if (hnd->pid == getpid()) - return 0; if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_ION) err = gralloc_map(module, handle, &vaddr);