diff --git a/hw/xfree86/os-support/linux/lnx_video.c b/hw/xfree86/os-support/linux/lnx_video.c index fd83022f6..d602f6e2c 100644 --- a/hw/xfree86/os-support/linux/lnx_video.c +++ b/hw/xfree86/os-support/linux/lnx_video.c @@ -122,8 +122,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; }