diff --git a/hw/xfree86/os-support/linux/lnx_video.c b/hw/xfree86/os-support/linux/lnx_video.c index 8ff0f0bc5..6591d7000 100644 --- a/hw/xfree86/os-support/linux/lnx_video.c +++ b/hw/xfree86/os-support/linux/lnx_video.c @@ -123,8 +123,8 @@ hwEnableIO(void) char *buf=NULL, target[5]; FILE *fp; - if (ioperm(0, 1024, 1)) { - ErrorF("xf86EnableIO: failed to enable I/O ports 0000-03ff (%s)\n", + if (ioperm(0, 1024, 1) || iopl(3)) { + ErrorF("xf86EnableIO: failed to enable I/O ports access (%s)\n", strerror(errno)); return FALSE; }