From: OGAWA Hirofumi Date: Tue, 31 May 2011 10:38:07 +0000 (+0900) Subject: fat: Fix corrupt inode flags when remove ATTR_SYS flag X-Git-Tag: v3.0-rc3~46^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1adffbae22332bb558c2a29de19d9aca391869f6;p=karo-tx-linux.git fat: Fix corrupt inode flags when remove ATTR_SYS flag We are clearly missing '~' in fat_ioctl_set_attributes(). Cc: Reported-by: Dmitry Dmitriev Signed-off-by: OGAWA Hirofumi --- diff --git a/fs/fat/file.c b/fs/fat/file.c index 7257752b6d5d..7018e1d8902d 100644 --- a/fs/fat/file.c +++ b/fs/fat/file.c @@ -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);