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:
fbb6184
)
connection: kdbus_cmd_msg_recv(): fix use after free
author
Daniel Mack
<zonque@gmail.com>
Fri, 21 Mar 2014 12:56:42 +0000
(13:56 +0100)
committer
Daniel Mack
<zonque@gmail.com>
Fri, 21 Mar 2014 12:56:42 +0000
(13:56 +0100)
connection.c
patch
|
blob
|
history
diff --git
a/connection.c
b/connection.c
index b2a563475dfd6d117a657cd3179c529ed9bc32ff..49286eb917792b21b4a6b00401f8cb8c972f2bcd 100644
(file)
--- a/
connection.c
+++ b/
connection.c
@@
-1047,11
+1047,13
@@
int kdbus_cmd_msg_recv(struct kdbus_conn *conn,
kdbus_conn_queue_remove(conn, queue);
kdbus_pool_free_range(conn->pool, queue->off);
- kdbus_conn_queue_cleanup(queue);
mutex_unlock(&conn->lock);
if (reply)
kdbus_conn_reply_free(reply);
+
+ kdbus_conn_queue_cleanup(queue);
+
goto exit;
}