scoutfs: fill nameidata with symlink path

Our follow_link method forgot to fill the nameidata with the target path
of the symlink.  The uninitialized nameidata tripped up the generic
readlink code in a debugging kernel.

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2016-09-08 13:47:19 -07:00
parent 04e0df4f36
commit 5375ed5f38

View File

@@ -16,6 +16,7 @@
#include <linux/crc32c.h>
#include <linux/uio.h>
#include <linux/xattr.h>
#include <linux/namei.h>
#include "format.h"
#include "dir.h"
@@ -620,6 +621,8 @@ static void *scoutfs_follow_link(struct dentry *dentry, struct nameidata *nd)
if (ret) {
kfree(path);
path = ERR_PTR(ret);
} else {
nd_set_link(nd, path);
}
return path;