提交 1adffbae 编写于 作者: O OGAWA Hirofumi

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: NDmitry Dmitriev <dimondmm@yandex.ru>
Signed-off-by: NOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
上级 55922c9d
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册