mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-20 09:20:09 +01:00
freedreno: prevent deadlock in error path
Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
6338e452c9
commit
ceb70a6b10
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue