[systemd-devel] [PATCH] endpoint: break if an endpoint was found

Djalal Harouni tixxdz at opendz.org
Wed Mar 19 13:31:15 PDT 2014


Signed-off-by: Djalal Harouni <tixxdz at opendz.org>
---
 endpoint.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/endpoint.c b/endpoint.c
index 876e5e3..a6d9dfb 100644
--- a/endpoint.c
+++ b/endpoint.c
@@ -139,6 +139,7 @@ static struct kdbus_ep *kdbus_ep_find(struct kdbus_bus *bus, const char *name)
 			continue;
 
 		ep = kdbus_ep_ref(e);
+		break;
 	}
 	mutex_unlock(&bus->lock);
 
-- 
1.8.5.3



More information about the systemd-devel mailing list