From 8207246ae3bab9df2af96aa113f84f986b8e125f Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Tue, 24 Dec 2013 22:44:07 +0100 Subject: [PATCH] do not deny writing messages to an activator connection --- connection.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/connection.c b/connection.c index d22ff59..f249010 100644 --- 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); -- 2.34.1