freedreno: prevent deadlock in error path

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Rob Clark <robdclark@gmail.com>
main
Eric Engestrom 2017-07-30 21:27:40 +01:00 committed by Eric Engestrom
parent 6338e452c9
commit ceb70a6b10
1 changed files with 1 additions and 0 deletions

View File

@ -138,6 +138,7 @@ fd_bo_from_dmabuf(struct fd_device *dev, int fd)
pthread_mutex_lock(&table_lock);
ret = drmPrimeFDToHandle(dev->fd, fd, &handle);
if (ret) {
pthread_mutex_unlock(&table_lock);
return NULL;
}