From 2de8a543ea68c9e39bd1288da7fa97443c31e4db Mon Sep 17 00:00:00 2001 From: mlarkin Date: Wed, 12 May 2021 04:00:46 +0000 Subject: [PATCH] KNF --- sys/arch/amd64/amd64/vmm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/amd64/amd64/vmm.c b/sys/arch/amd64/amd64/vmm.c index b1c49b057d4..7ebc0ec77ee 100644 --- a/sys/arch/amd64/amd64/vmm.c +++ b/sys/arch/amd64/amd64/vmm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmm.c,v 1.281 2021/05/11 22:04:10 dv Exp $ */ +/* $OpenBSD: vmm.c,v 1.282 2021/05/12 04:00:46 mlarkin Exp $ */ /* * Copyright (c) 2014 Mike Larkin * @@ -1130,7 +1130,7 @@ vm_find(uint32_t id, struct vm **res) * all VMs and is indicated by PLEDGE_PROC. */ if (((p->p_p->ps_pledge & - (PLEDGE_VMM|PLEDGE_PROC)) == PLEDGE_VMM) && + (PLEDGE_VMM | PLEDGE_PROC)) == PLEDGE_VMM) && (vm->vm_creator_pid != p->p_p->ps_pid)) return (pledge_fail(p, EPERM, PLEDGE_VMM)); *res = vm; -- 2.20.1