if (exe_path) {
char *tmp;
char *pathname;
- size_t len;
tmp = (char *) __get_free_page(GFP_TEMPORARY | __GFP_ZERO);
if (!tmp) {
pathname = d_path(exe_path, tmp, PAGE_SIZE);
if (!IS_ERR(pathname)) {
- len = tmp + PAGE_SIZE - pathname;
+ size_t len = tmp + PAGE_SIZE - pathname;
ret = kdbus_meta_append_data(meta, KDBUS_ITEM_EXE,
pathname, len);
}
int ret;
hash_for_each(conn->ep->bus->conn_hash, i, c, hentry) {
- struct kdbus_name_entry *e;
bool added = false;
/* skip activators */
/* all names the connection owns */
if (flags & KDBUS_NAME_LIST_NAMES ||
c->flags & KDBUS_HELLO_ACTIVATOR) {
+ struct kdbus_name_entry *e;
+
list_for_each_entry(e, &c->names_list, conn_entry) {
ret = kdbus_name_list_write(conn, c, &p,
e, write);