ia64/xen-unstable

changeset 11901:d088aec406c0

[ACM] Add missing alignment operations for the ACM module.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
author kfraser@localhost.localdomain
date Thu Oct 19 15:14:25 2006 +0100 (2006-10-19)
parents 8551487a637d
children d27d1f8ca25c
files xen/acm/acm_chinesewall_hooks.c xen/acm/acm_simple_type_enforcement_hooks.c
line diff
     1.1 --- a/xen/acm/acm_chinesewall_hooks.c	Thu Oct 19 15:13:09 2006 +0100
     1.2 +++ b/xen/acm/acm_chinesewall_hooks.c	Thu Oct 19 15:14:25 2006 +0100
     1.3 @@ -154,6 +154,8 @@ static int chwall_dump_policy(u8 * buf, 
     1.4      ret = ntohl(chwall_buf->chwall_conflict_aggregate_offset) +
     1.5          sizeof(domaintype_t) * chwall_bin_pol.max_types;
     1.6  
     1.7 +    ret = (ret + 7) & ~7;
     1.8 +
     1.9      if (buf_size < ret)
    1.10          return -EINVAL;
    1.11  
     2.1 --- a/xen/acm/acm_simple_type_enforcement_hooks.c	Thu Oct 19 15:13:09 2006 +0100
     2.2 +++ b/xen/acm/acm_simple_type_enforcement_hooks.c	Thu Oct 19 15:14:25 2006 +0100
     2.3 @@ -150,6 +150,8 @@ ste_dump_policy(u8 *buf, u32 buf_size) {
     2.4      ret = ntohl(ste_buf->ste_ssid_offset) +
     2.5          sizeof(domaintype_t)*ste_bin_pol.max_ssidrefs*ste_bin_pol.max_types;
     2.6  
     2.7 +    ret = (ret + 7) & ~7;
     2.8 +
     2.9      if (buf_size < ret)
    2.10          return -EINVAL;
    2.11