fat: Fix corrupt inode flags when remove ATTR_SYS flag

We are clearly missing '~' in fat_ioctl_set_attributes().

Cc: <[email protected]>
Reported-by: Dmitry Dmitriev <[email protected]>
Signed-off-by: OGAWA Hirofumi <[email protected]>
This commit is contained in:
OGAWA Hirofumi 2011-05-31 19:38:07 +09:00
commit 1adffbae22

View file

@ -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);