# HG changeset patch # User gingold@virtu10 # Node ID 8370553249bb3c99c2a1c6ce3439afc4606acc27 # Parent 96c7ebb42561e6e9ebe5474591487a2b3987dce9 Bug fix in ioports_deny_access. Signed-off-by: Tristan Gingold diff -r 96c7ebb42561 -r 8370553249bb xen/arch/ia64/xen/mm.c --- a/xen/arch/ia64/xen/mm.c Tue Aug 08 08:16:11 2006 +0200 +++ b/xen/arch/ia64/xen/mm.c Tue Aug 08 10:59:08 2006 +0200 @@ -919,10 +919,10 @@ ioports_deny_access(struct domain *d, un pte_t old_pte; port = IO_SPACE_SPARSE_DECODING (off); - if (port < fp || port + IO_SPACE_SPARSE_PORTS_PER_PAGE > lp) { + if (port < fp || port + IO_SPACE_SPARSE_PORTS_PER_PAGE - 1 > lp) { /* Maybe this covers an allowed port. */ if (ioports_has_allowed(d, port, - port + IO_SPACE_SPARSE_PORTS_PER_PAGE)) + port + IO_SPACE_SPARSE_PORTS_PER_PAGE - 1)) continue; }