direct-io.hg

changeset 8447:188ef899e626

Fix iobmp_mask setup when permitting a domU access to
I/O port ranges.

Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
author kaf24@firebug.cl.cam.ac.uk
date Wed Dec 28 16:23:42 2005 +0100 (2005-12-28)
parents f36627941bbe
children 8d0b62f0aa8d
files xen/arch/x86/dom0_ops.c
line diff
     1.1 --- a/xen/arch/x86/dom0_ops.c	Wed Dec 28 15:17:04 2005 +0100
     1.2 +++ b/xen/arch/x86/dom0_ops.c	Wed Dec 28 16:23:42 2005 +0100
     1.3 @@ -153,7 +153,7 @@ long arch_do_dom0_op(dom0_op_t *op, dom0
     1.4              break;
     1.5  
     1.6          ret = -ENOMEM;
     1.7 -        if ( d->arch.iobmp_mask != NULL )
     1.8 +        if ( d->arch.iobmp_mask == NULL )
     1.9          {
    1.10              if ( (d->arch.iobmp_mask = xmalloc_array(
    1.11                  u8, IOBMP_BYTES)) == NULL )