summaryrefslogtreecommitdiff
path: root/lib/libdrm/omap
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2015-12-27 08:58:22 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2015-12-27 08:58:22 +0000
commit5db7cad38be896315e2b897f68d1751d340a2483 (patch)
treecaab7de8344c4ce0d7d769184a89ea35d80dce1c /lib/libdrm/omap
parent5550a33ac941747a471b1029b7f6ae4a7569c8c3 (diff)
Import libdrm 2.4.65
Diffstat (limited to 'lib/libdrm/omap')
-rw-r--r--lib/libdrm/omap/omap_drm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libdrm/omap/omap_drm.c b/lib/libdrm/omap/omap_drm.c
index 4a0248d5e..08ba64eb6 100644
--- a/lib/libdrm/omap/omap_drm.c
+++ b/lib/libdrm/omap/omap_drm.c
@@ -186,6 +186,7 @@ static struct omap_bo * bo_from_handle(struct omap_device *dev,
}
bo->dev = omap_device_ref(dev);
bo->handle = handle;
+ bo->fd = -1;
atomic_set(&bo->refcnt, 1);
/* add ourselves to the handle table: */
drmHashInsert(dev->handle_table, handle, bo);