diff options
author | Stefan Kempf <stefan@cvs.openbsd.org> | 2016-01-08 08:12:22 +0000 |
---|---|---|
committer | Stefan Kempf <stefan@cvs.openbsd.org> | 2016-01-08 08:12:22 +0000 |
commit | 2b168b2cfc8b723ced8c029c034d59c6a49e6b7c (patch) | |
tree | 4f71713cf2bdf0623c01748141f437855334b051 /usr.sbin/vmd | |
parent | 6d3f829cc0c2784a6c1e092a773078f06d936481 (diff) |
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@
Diffstat (limited to 'usr.sbin/vmd')
-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 |