projects
/
platform
/
core
/
system
/
kdbus-bus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3488f9d
)
endpoint: fix potential deadlock
author
Daniel Mack
<zonque@gmail.com>
Tue, 17 Dec 2013 12:59:56 +0000
(13:59 +0100)
committer
Daniel Mack
<zonque@gmail.com>
Tue, 17 Dec 2013 12:59:56 +0000
(13:59 +0100)
endpoint.c
patch
|
blob
|
history
diff --git
a/endpoint.c
b/endpoint.c
index 07742c3b50fc9759778a17d91e7e89d201a52563..a36e014fdeee7326999e1575b60eacc2315fff64 100644
(file)
--- a/
endpoint.c
+++ b/
endpoint.c
@@
-182,6
+182,7
@@
int kdbus_ep_new(struct kdbus_bus *bus, struct kdbus_ns *ns, const char *name,
i = idr_alloc(&ns->idr, e, 1, 0, GFP_KERNEL);
if (i <= 0) {
ret = i;
+ mutex_unlock(&ns->lock);
goto exit;
}
e->minor = i;