aboutsummaryrefslogtreecommitdiffstats
path: root/omap
diff options
context:
space:
mode:
authorVincent Penquerc'h2012-10-09 08:48:34 -0500
committerRob Clark2012-10-09 09:41:27 -0500
commit28a13f0be734958c74ae5a23d9cf766fa0857a62 (patch)
tree6c7b1ae3a68229d5fd061efbcbecfc3eab356425 /omap
parent14db948127e549ea9234e02d8e112de3871f8f9f (diff)
downloadexternal-libgbm-28a13f0be734958c74ae5a23d9cf766fa0857a62.tar.gz
external-libgbm-28a13f0be734958c74ae5a23d9cf766fa0857a62.tar.xz
external-libgbm-28a13f0be734958c74ae5a23d9cf766fa0857a62.zip
omap: release lock also on error paths
Signed-off-by: Rob Clark <rob@ti.com>
Diffstat (limited to 'omap')
-rw-r--r--omap/omap_drm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/omap/omap_drm.c b/omap/omap_drm.c
index cd8e8bc4..89f14911 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)
304 return bo; 304 return bo;
305 305
306fail: 306fail:
307 pthread_mutex_unlock(&table_lock);
307 free(bo); 308 free(bo);
308 return NULL; 309 return NULL;
309} 310}
@@ -337,6 +338,7 @@ struct omap_bo * omap_bo_from_dmabuf(struct omap_device *dev, int fd)
337 return bo; 338 return bo;
338 339
339fail: 340fail:
341 pthread_mutex_unlock(&table_lock);
340 free(bo); 342 free(bo);
341 return NULL; 343 return NULL;
342} 344}