Skip to content

Commit

Permalink
fat: Fix corrupt inode flags when remove ATTR_SYS flag
Browse files Browse the repository at this point in the history
We are clearly missing '~' in fat_ioctl_set_attributes().

Cc: <stable@kernel.org>
Reported-by: Dmitry Dmitriev <dimondmm@yandex.ru>
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
  • Loading branch information
OGAWA Hirofumi committed May 31, 2011
1 parent 55922c9 commit 1adffba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/fat/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ static int fat_ioctl_set_attributes(struct file *file, u32 __user *user_attr)
if (attr & ATTR_SYS)
inode->i_flags |= S_IMMUTABLE;
else
inode->i_flags &= S_IMMUTABLE;
inode->i_flags &= ~S_IMMUTABLE;
}

fat_save_attrs(inode, attr);
Expand Down

0 comments on commit 1adffba

Please sign in to comment.