diff options
author | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2012-10-09 14:48:34 +0100 |
---|---|---|
committer | Rob Clark <rob@ti.com> | 2012-10-09 09:41:27 -0500 |
commit | 28a13f0be734958c74ae5a23d9cf766fa0857a62 (patch) | |
tree | 6c7b1ae3a68229d5fd061efbcbecfc3eab356425 | |
parent | 14db948127e549ea9234e02d8e112de3871f8f9f (diff) |
omap: release lock also on error paths
Signed-off-by: Rob Clark <rob@ti.com>
-rw-r--r-- | omap/omap_drm.c | 2 |
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) 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; } |