Re: [PATCH] reiser4: fix supported flags check in reiser4_rename2_common().

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



OK

On 09/14/2015 04:21 AM, Ivan Shapovalov wrote:
---

This was left behind some time ago. I've just spotted a relevant warning.

  fs/reiser4/plugin/inode_ops_rename.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/reiser4/plugin/inode_ops_rename.c b/fs/reiser4/plugin/inode_ops_rename.c
index 6744e14..ddb7bf5 100644
--- a/fs/reiser4/plugin/inode_ops_rename.c
+++ b/fs/reiser4/plugin/inode_ops_rename.c
@@ -435,7 +435,7 @@ int reiser4_rename2_common(struct inode *old_dir /* directory where @old
  	 * We support:
  	 * - RENAME_NOREPLACE (no-op)
  	 */
-	if (flags & supported_flags != flags)
+	if ((flags & supported_flags) != flags)
  		return RETERR(-EINVAL);
old_entry = kzalloc(3 * sizeof(*old_entry) + 2 * sizeof(*new_lh) +

--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux File System Development]     [Linux BTRFS]     [Linux NFS]     [Linux Filesystems]     [Ext4 Filesystem]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Resources]

  Powered by Linux