summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gralloc_drm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gralloc_drm.c b/gralloc_drm.c
index 27a49c5..bd38d57 100644
--- a/gralloc_drm.c
+++ b/gralloc_drm.c
@@ -207,6 +207,7 @@ static struct gralloc_drm_bo_t *validate_handle(buffer_handle_t _handle,
bo->drm = drm;
bo->imported = 1;
bo->handle = handle;
+ bo->refcount = 1;
}
handle->data_owner = gralloc_drm_get_pid();