commit | ceb70a6b1015be5ccc7858c4d3e29c13acbf71b7 | [log] [tgz] |
---|---|---|
author | Eric Engestrom <eric@engestrom.ch> | Sun Jul 30 21:27:40 2017 +0100 |
committer | Eric Engestrom <eric.engestrom@imgtec.com> | Mon Aug 07 14:16:41 2017 +0100 |
tree | 7437e1565762f996354dbacd5f19ac1d86bb9c6c | |
parent | 6338e452c907a5e8024b2f3615795ac68dcf0a35 [diff] |
freedreno: prevent deadlock in error path Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Rob Clark <robdclark@gmail.com>
diff --git a/freedreno/freedreno_bo.c b/freedreno/freedreno_bo.c index 10949eb..7f8ea59 100644 --- a/freedreno/freedreno_bo.c +++ b/freedreno/freedreno_bo.c
@@ -138,6 +138,7 @@ pthread_mutex_lock(&table_lock); ret = drmPrimeFDToHandle(dev->fd, fd, &handle); if (ret) { + pthread_mutex_unlock(&table_lock); return NULL; }