summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhan Xusheng <zhanxusheng1024@gmail.com>2026-03-27 06:24:54 +0300
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2026-04-07 19:43:36 +0300
commitbb82fe0872de867f87fd4f64c9cb157903ac78db (patch)
tree22e7053913739b5657e4c382c6c54b7ef0a99707
parent859d777646b56dd878b136392f3d03fb8153b559 (diff)
downloadlinux-bb82fe0872de867f87fd4f64c9cb157903ac78db.tar.xz
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>
-rw-r--r--fs/ntfs3/xattr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ntfs3/xattr.c b/fs/ntfs3/xattr.c
index 3fffda784892..9eeac0ab2b71 100644
--- a/fs/ntfs3/xattr.c
+++ b/fs/ntfs3/xattr.c
@@ -1031,7 +1031,7 @@ void ntfs_get_wsl_perm(struct inode *inode)
i_gid_write(inode, (gid_t)le32_to_cpu(value[1]));
inode->i_mode = le32_to_cpu(value[2]);
- if (ntfs_get_ea(inode, "$LXDEV", sizeof("$$LXDEV") - 1,
+ if (ntfs_get_ea(inode, "$LXDEV", sizeof("$LXDEV") - 1,
&value[0], sizeof(value),
&sz) == sizeof(value[0])) {
inode->i_rdev = le32_to_cpu(value[0]);