diff options
author | OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> | 2011-05-31 19:38:07 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-06-23 15:28:40 -0700 |
commit | ea41e016bb84023920e2395888ce04b970c5b17a (patch) | |
tree | 7b8a4e2a1576db6c9b5b007b06fd6afd3fc149fd | |
parent | 127b00c8c20c133b9efc320379e9031570adbdbe (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>
-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 e8c159de236b..279937bf6e14 100644 --- a/fs/fat/file.c +++ b/fs/fat/file.c @@ -101,7 +101,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); |