OSDN Git Service

WIP: always use gralloc_drm_get_pid()
authorRob Clark <robdclark@gmail.com>
Mon, 31 Aug 2015 17:32:21 +0000 (13:32 -0400)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 6 Oct 2015 10:07:08 +0000 (18:07 +0800)
Rather than accessing gralloc_drm_pid directly.

gralloc_drm.c

index 3478dde..54b9408 100644 (file)
@@ -205,7 +205,7 @@ static struct gralloc_drm_bo_t *validate_handle(buffer_handle_t _handle,
                return NULL;
 
        /* the buffer handle is passed to a new process */
-       if (unlikely(handle->data_owner != gralloc_drm_pid)) {
+       if (unlikely(handle->data_owner != gralloc_drm_get_pid())) {
                struct gralloc_drm_bo_t *bo;
 
                /* check only */