syscall_other: bracketing
authorAlan Cox <alan@linux.intel.com>
Sat, 17 Feb 2018 22:39:43 +0000 (22:39 +0000)
committerAlan Cox <alan@linux.intel.com>
Sat, 17 Feb 2018 22:39:43 +0000 (22:39 +0000)
Kernel/syscall_other.c

index 055678d..23e3029 100644 (file)
@@ -365,7 +365,7 @@ static int do_umount(uint16_t dev)
 
        /* If anything on this file system is open for write then you
           can't remount it read only */
-       if (flags & (MS_RDONLY|MS_REMOUNT) == (MS_RDONLY|MS_REMOUNT)) {
+       if ((flags & (MS_RDONLY|MS_REMOUNT)) == (MS_RDONLY|MS_REMOUNT)) {
                for (ptr = i_tab ; ptr < i_tab + ITABSIZE; ++ptr) {
                        if (ptr->c_dev == dev && !isdevice(ptr)) {
                        /* Files being written block the remount ro, but so