diff options
author | OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> | 2011-05-31 19:38:07 +0900 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2011-08-01 13:54:55 -0700 |
commit | ff7cb9c3fe433028969fe28b5a542a0477b252b3 (patch) | |
tree | 2a7ef7750de5e9f67f68aa25d3e977fc12b8e9fb /fs | |
parent | ce63e3f96077c6979c9e1e31c5c3abef8c3d9dd9 (diff) |
fat: Fix corrupt inode flags when remove ATTR_SYS flag
commit 1adffbae22332bb558c2a29de19d9aca391869f6 upstream.
We are clearly missing '~' in fat_ioctl_set_attributes().
Reported-by: Dmitry Dmitriev <dimondmm@yandex.ru>
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/fat/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fat/file.c b/fs/fat/file.c index 990dfae022e5..f2880571b3b0 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); |