From f6ae44230f76a079fdb393b617afa7a3051d4e95 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 17 Feb 2018 22:39:43 +0000 Subject: [PATCH] syscall_other: bracketing --- Kernel/syscall_other.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/syscall_other.c b/Kernel/syscall_other.c index 055678dc..23e3029b 100644 --- a/Kernel/syscall_other.c +++ b/Kernel/syscall_other.c @@ -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 -- 2.34.1