author: Ronnie Sahlberg <lsahlber@redhat.com> 2021-08-10 16:33:55 +1000
committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2021-08-18 09:06:48 +0200
commit: 000cb600dabf180358ccbff900c0f1ba366bc7bc
parent: 0ca6ac8a2691762307beaa4841255d1cfe6b2684
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c
index 7c641f9a3dac..bbfc540b4858 100644
--- a/fs/cifs/dir.c
+++ b/fs/cifs/dir.c
@@ -112,7 +112,7 @@ build_path_from_dentry_optional_prefix(struct dentry *direntry, void *page,
if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_USE_PREFIX_PATH)
pplen = cifs_sb->prepath ? strlen(cifs_sb->prepath) + 1 : 0;
- s = dentry_path_raw(direntry, page, PAGE_SIZE);
+ s = dentry_path_raw(direntry, page, PATH_MAX);
if (IS_ERR(s))
return s;
if (!s[1]) // for root we want "", not "/"