aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Engestrom2017-07-30 15:27:40 -0500
committerEric Engestrom2017-08-07 08:16:41 -0500
commitceb70a6b1015be5ccc7858c4d3e29c13acbf71b7 (patch)
tree7437e1565762f996354dbacd5f19ac1d86bb9c6c /freedreno
parent6338e452c907a5e8024b2f3615795ac68dcf0a35 (diff)
downloadexternal-libdrm-ceb70a6b1015be5ccc7858c4d3e29c13acbf71b7.tar.gz
external-libdrm-ceb70a6b1015be5ccc7858c4d3e29c13acbf71b7.tar.xz
external-libdrm-ceb70a6b1015be5ccc7858c4d3e29c13acbf71b7.zip
freedreno: prevent deadlock in error path
Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'freedreno')
-rw-r--r--freedreno/freedreno_bo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/freedreno/freedreno_bo.c b/freedreno/freedreno_bo.c
index 10949ebf..7f8ea59c 100644
--- a/freedreno/freedreno_bo.c
+++ b/freedreno/freedreno_bo.c
@@ -138,6 +138,7 @@ fd_bo_from_dmabuf(struct fd_device *dev, int fd)
138 pthread_mutex_lock(&table_lock); 138 pthread_mutex_lock(&table_lock);
139 ret = drmPrimeFDToHandle(dev->fd, fd, &handle); 139 ret = drmPrimeFDToHandle(dev->fd, fd, &handle);
140 if (ret) { 140 if (ret) {
141 pthread_mutex_unlock(&table_lock);
141 return NULL; 142 return NULL;
142 } 143 }
143 144