From 069a3c88374ee9ffb1b02ba4431672c125dd4cc5 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Tue, 9 Oct 2012 14:48:34 +0100 Subject: [PATCH] omap_drm: release lock also on error paths --- omap/omap_drm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/omap/omap_drm.c b/omap/omap_drm.c index cd8e8bc..89f1491 100644 --- a/omap/omap_drm.c +++ b/omap/omap_drm.c @@ -304,6 +304,7 @@ struct omap_bo * omap_bo_from_name(struct omap_device *dev, uint32_t name) return bo; fail: + pthread_mutex_unlock(&table_lock); free(bo); return NULL; } @@ -337,6 +338,7 @@ struct omap_bo * omap_bo_from_dmabuf(struct omap_device *dev, int fd) return bo; fail: + pthread_mutex_unlock(&table_lock); free(bo); return NULL; } -- 1.7.9.5