summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstefan <stefan@openbsd.org>2016-01-08 08:12:21 +0000
committerstefan <stefan@openbsd.org>2016-01-08 08:12:21 +0000
commit08891ec3bf8366379e7ce60b734d0755781a4cbb (patch)
tree8a6c12500a963414f415635e695aa40062c247ab
parentUse off_t to store the offset we want to access the NVRAM at (diff)
downloadwireguard-openbsd-08891ec3bf8366379e7ce60b734d0755781a4cbb.tar.xz
wireguard-openbsd-08891ec3bf8366379e7ce60b734d0755781a4cbb.zip
Must set MAX_PORTS to 65536, since we assign to
ioports_map[VMM_PCI_IO_BAR_END (= 65535)]. Fixes an off-by-one. ok mlarkin@, reyk@
-rw-r--r--usr.sbin/vmd/vmm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vmd/vmm.c b/usr.sbin/vmd/vmm.c
index 4bd4b889dfb..587ad33d758 100644
--- a/usr.sbin/vmd/vmm.c
+++ b/usr.sbin/vmd/vmm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmm.c,v 1.16 2016/01/04 07:27:24 mlarkin Exp $ */
+/* $OpenBSD: vmm.c,v 1.17 2016/01/08 08:12:21 stefan Exp $ */
/*
* Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org>
@@ -58,7 +58,7 @@
#include "virtio.h"
#include "proc.h"
-#define MAX_PORTS 65535
+#define MAX_PORTS 65536
/*
* Emulated 8250 UART