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:
34a2d31
)
hfsplus: fix an artifact in ioctl flag checking
author
Anton Salikhmetov
<alexo@tuxera.com>
Thu, 16 Dec 2010 12:44:51 +0000
(14:44 +0200)
committer
Christoph Hellwig
<hch@tuxera.com>
Thu, 16 Dec 2010 17:08:43 +0000
(18:08 +0100)
Fix a flag checking artifact in hfsplus_ioctl_getflags() routine
found while doing clean-up against assignments inside `if's.
Signed-off-by: Anton Salikhmetov <alexo@tuxera.com>
Signed-off-by: Christoph Hellwig <hch@tuxera.com>
fs/hfsplus/ioctl.c
patch
|
blob
|
history
diff --git
a/fs/hfsplus/ioctl.c
b/fs/hfsplus/ioctl.c
index f5a7224f4cbbe83281181ee57ebf63892215132c..508ce662ce122b0b5bea34f6f6260ae22ef0a512 100644
(file)
--- a/
fs/hfsplus/ioctl.c
+++ b/
fs/hfsplus/ioctl.c
@@
-28,7
+28,7
@@
static int hfsplus_ioctl_getflags(struct file *file, int __user *user_flags)
if (inode->i_flags & S_IMMUTABLE)
flags |= FS_IMMUTABLE_FL;
- if (inode->i_flags
|=
S_APPEND)
+ if (inode->i_flags
&
S_APPEND)
flags |= FS_APPEND_FL;
if (hip->userflags & HFSPLUS_FLG_NODUMP)
flags |= FS_NODUMP_FL;