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:
8e09cfd
)
do not deny writing messages to an activator connection
author
Kay Sievers
<kay@vrfy.org>
Tue, 24 Dec 2013 21:44:07 +0000
(22:44 +0100)
committer
Kay Sievers
<kay@vrfy.org>
Tue, 24 Dec 2013 21:44:07 +0000
(22:44 +0100)
connection.c
patch
|
blob
|
history
diff --git
a/connection.c
b/connection.c
index d22ff59155cf65701d68ecc63e4038cdb8f531c4..f2490109f425e20dc055473d902d004069188c58 100644
(file)
--- a/
connection.c
+++ b/
connection.c
@@
-1266,11
+1266,7
@@
int kdbus_conn_move_messages(struct kdbus_conn *conn_dst,
LIST_HEAD(msg_list);
int ret = 0;
- if (!(conn_src->flags & KDBUS_HELLO_ACTIVATOR))
- return -EINVAL;
-
- if (conn_src == conn_dst)
- return -EINVAL;
+ BUG_ON(conn_src == conn_dst);
mutex_lock(&conn_src->lock);
list_splice_init(&conn_src->msg_list, &msg_list);