From: Eric Engestrom <eric@engestrom.ch>
To: dri-devel@lists.freedesktop.org
Subject: [PATCH libdrm 3/3] freedreno: prevent deadlock in error path
Date: Sun, 30 Jul 2017 21:27:40 +0100 [thread overview]
Message-ID: <20170730202740.27564-3-eric@engestrom.ch> (raw)
In-Reply-To: <20170730202740.27564-1-eric@engestrom.ch>
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
---
freedreno/freedreno_bo.c | 1 +
1 file changed, 1 insertion(+)
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)
pthread_mutex_lock(&table_lock);
ret = drmPrimeFDToHandle(dev->fd, fd, &handle);
if (ret) {
+ pthread_mutex_unlock(&table_lock);
return NULL;
}
--
Cheers,
Eric
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
prev parent reply other threads:[~2017-07-30 20:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-30 20:27 [PATCH libdrm 1/3] freedreno: remove dead error path Eric Engestrom
2017-07-30 20:27 ` [PATCH libdrm 2/3] freedreno/msm: " Eric Engestrom
2017-08-01 23:16 ` Rob Clark
2017-07-30 20:27 ` Eric Engestrom [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170730202740.27564-3-eric@engestrom.ch \
--to=eric@engestrom.ch \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox