diff options
author | 2016-01-08 08:12:21 +0000 | |
---|---|---|
committer | 2016-01-08 08:12:21 +0000 | |
commit | 08891ec3bf8366379e7ce60b734d0755781a4cbb (patch) | |
tree | 8a6c12500a963414f415635e695aa40062c247ab | |
parent | Use off_t to store the offset we want to access the NVRAM at (diff) | |
download | wireguard-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.c | 4 |
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 |