Skip to content

Commit bb82fe0

Browse files
Zhan Xushengaalexandrovich
authored andcommitted
fs/ntfs3: fix $LXDEV xattr lookup
Use correct xattr name ("$LXDEV") and buffer size when calling ntfs_get_ea(), otherwise the attribute may not be read. Signed-off-by: Zhan Xusheng <zhanxusheng@xiaomi.com> Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
1 parent 859d777 commit bb82fe0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/ntfs3/xattr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ void ntfs_get_wsl_perm(struct inode *inode)
10311031
i_gid_write(inode, (gid_t)le32_to_cpu(value[1]));
10321032
inode->i_mode = le32_to_cpu(value[2]);
10331033

1034-
if (ntfs_get_ea(inode, "$LXDEV", sizeof("$$LXDEV") - 1,
1034+
if (ntfs_get_ea(inode, "$LXDEV", sizeof("$LXDEV") - 1,
10351035
&value[0], sizeof(value),
10361036
&sz) == sizeof(value[0])) {
10371037
inode->i_rdev = le32_to_cpu(value[0]);

0 commit comments

Comments
 (0)