ia64/xen-unstable

changeset 10935:555eb7402bd8

[IA64] bug fix in ioports_deny_access

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
author awilliam@xenbuild.aw
date Tue Aug 08 14:38:10 2006 -0600 (2006-08-08)
parents 2aaad9cbc926
children 3f3388f3e605
files xen/arch/ia64/xen/mm.c
line diff
     1.1 --- a/xen/arch/ia64/xen/mm.c	Tue Aug 08 14:36:21 2006 -0600
     1.2 +++ b/xen/arch/ia64/xen/mm.c	Tue Aug 08 14:38:10 2006 -0600
     1.3 @@ -881,10 +881,10 @@ ioports_deny_access(struct domain *d, un
     1.4          pte_t old_pte;
     1.5  
     1.6          port = IO_SPACE_SPARSE_DECODING (off);
     1.7 -        if (port < fp || port + IO_SPACE_SPARSE_PORTS_PER_PAGE > lp) {
     1.8 +        if (port < fp || port + IO_SPACE_SPARSE_PORTS_PER_PAGE - 1 > lp) {
     1.9              /* Maybe this covers an allowed port.  */
    1.10              if (ioports_has_allowed(d, port,
    1.11 -                                    port + IO_SPACE_SPARSE_PORTS_PER_PAGE))
    1.12 +                                    port + IO_SPACE_SPARSE_PORTS_PER_PAGE - 1))
    1.13                  continue;
    1.14          }
    1.15