From 5c69be739e2b599badb47c80aeea4e2ffb88f6d8 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Fri, 11 Mar 2022 14:16:59 -0500 Subject: [PATCH] kernel/vm: De-wrap line for clarity. No functional change. Now it looks the same as the surrounding checks. --- src/system/kernel/vm/vm.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/system/kernel/vm/vm.cpp b/src/system/kernel/vm/vm.cpp index 87b450ff7c..3d7597b402 100644 --- a/src/system/kernel/vm/vm.cpp +++ b/src/system/kernel/vm/vm.cpp @@ -4743,8 +4743,7 @@ vm_soft_fault(VMAddressSpace* addressSpace, addr_t originalAddress, status = B_PERMISSION_DENIED; break; } else if (isExecute && (protection - & (B_EXECUTE_AREA - | (isUser ? 0 : B_KERNEL_EXECUTE_AREA))) == 0) { + & (B_EXECUTE_AREA | (isUser ? 0 : B_KERNEL_EXECUTE_AREA))) == 0) { dprintf("instruction fetch attempted on execute-protected area 0x%" B_PRIx32 " at %p\n", area->id, (void*)originalAddress); TPF(PageFaultError(area->id,