From 2b168b2cfc8b723ced8c029c034d59c6a49e6b7c Mon Sep 17 00:00:00 2001 From: Stefan Kempf Date: Fri, 8 Jan 2016 08:12:22 +0000 Subject: 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@ --- usr.sbin/vmd/vmm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/vmd') 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 @@ -58,7 +58,7 @@ #include "virtio.h" #include "proc.h" -#define MAX_PORTS 65535 +#define MAX_PORTS 65536 /* * Emulated 8250 UART -- cgit v1.2.3