Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31e8ccea authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

ovl: fix readdir error value



actor's return value is taken as a bool (filled/not filled) so we need to
return the error in the context.

Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 6787341a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -131,8 +131,10 @@ static int ovl_cache_entry_add_rb(struct ovl_readdir_data *rdd,
	}

	p = ovl_cache_entry_new(rdd, name, len, ino, d_type);
	if (p == NULL)
	if (p == NULL) {
		rdd->err = -ENOMEM;
		return -ENOMEM;
	}

	list_add_tail(&p->l_node, rdd->list);
	rb_link_node(&p->node, parent, newp);