freedreno: prevent deadlock in error path
Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Rob Clark <robdclark@gmail.com>main
parent
6338e452c9
commit
ceb70a6b10
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue