projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55922c9
)
fat: Fix corrupt inode flags when remove ATTR_SYS flag
author
OGAWA Hirofumi
<hirofumi@mail.parknet.co.jp>
Tue, 31 May 2011 10:38:07 +0000
(19:38 +0900)
committer
OGAWA Hirofumi
<hirofumi@mail.parknet.co.jp>
Tue, 31 May 2011 10:42:24 +0000
(19:42 +0900)
We are clearly missing '~' in fat_ioctl_set_attributes().
Cc: <stable@kernel.org>
Reported-by: Dmitry Dmitriev <dimondmm@yandex.ru>
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
fs/fat/file.c
patch
|
blob
|
history
diff --git
a/fs/fat/file.c
b/fs/fat/file.c
index 7257752b6d5d3f0c8c133597135cb2f92821f784..7018e1d8902dee6c4b38f7247a38e9315cba27f5 100644
(file)
--- 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);