mirror of
https://github.com/versity/scoutfs.git
synced 2026-01-10 13:47:27 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user