Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Zhan Xusheng and committed by
Konstantin Komarov
bb82fe08 859d7776

+1 -1
+1 -1
fs/ntfs3/xattr.c
··· 1031 1031 i_gid_write(inode, (gid_t)le32_to_cpu(value[1])); 1032 1032 inode->i_mode = le32_to_cpu(value[2]); 1033 1033 1034 - if (ntfs_get_ea(inode, "$LXDEV", sizeof("$$LXDEV") - 1, 1034 + if (ntfs_get_ea(inode, "$LXDEV", sizeof("$LXDEV") - 1, 1035 1035 &value[0], sizeof(value), 1036 1036 &sz) == sizeof(value[0])) { 1037 1037 inode->i_rdev = le32_to_cpu(value[0]);