mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
fat: Fix corrupt inode flags when remove ATTR_SYS flag
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>
This commit is contained in:
parent
55922c9d1b
commit
1adffbae22
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue