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

Commit 3b6036d1 authored by Al Viro's avatar Al Viro
Browse files

hostfs ->follow_link() braino



we want the assignment to err done inside the if () to be
visible after it, so (re)declaring err inside if () body
is wrong.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 850a496f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -876,7 +876,7 @@ static void *hostfs_follow_link(struct dentry *dentry, struct nameidata *nd)
		char *path = dentry_name(dentry);
		int err = -ENOMEM;
		if (path) {
			int err = hostfs_do_readlink(path, link, PATH_MAX);
			err = hostfs_do_readlink(path, link, PATH_MAX);
			if (err == PATH_MAX)
				err = -E2BIG;
			__putname(path);