Loading fs/ntfs3/xattr.c +4 −1 Original line number Diff line number Diff line Loading @@ -219,8 +219,11 @@ static ssize_t ntfs_list_ea(struct ntfs_inode *ni, char *buffer, if (!ea->name_len) break; if (ea->name_len > ea_size) if (ea->name_len > ea_size) { ntfs_set_state(ni->mi.sbi, NTFS_DIRTY_ERROR); err = -EINVAL; /* corrupted fs */ break; } if (buffer) { /* Check if we can use field ea->name */ Loading Loading
fs/ntfs3/xattr.c +4 −1 Original line number Diff line number Diff line Loading @@ -219,8 +219,11 @@ static ssize_t ntfs_list_ea(struct ntfs_inode *ni, char *buffer, if (!ea->name_len) break; if (ea->name_len > ea_size) if (ea->name_len > ea_size) { ntfs_set_state(ni->mi.sbi, NTFS_DIRTY_ERROR); err = -EINVAL; /* corrupted fs */ break; } if (buffer) { /* Check if we can use field ea->name */ Loading