|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] [ACM] Add missing alignment operations fo
# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Node ID d088aec406c04282eed35a0b31e3fede0132f883
# Parent 8551487a637d5798601e86ce6563e9a8abaa2325
[ACM] Add missing alignment operations for the ACM module.
Signed-off-by: Stefan Berger <stefanb@xxxxxxxxxx>
---
xen/acm/acm_chinesewall_hooks.c | 2 ++
xen/acm/acm_simple_type_enforcement_hooks.c | 2 ++
2 files changed, 4 insertions(+)
diff -r 8551487a637d -r d088aec406c0 xen/acm/acm_chinesewall_hooks.c
--- a/xen/acm/acm_chinesewall_hooks.c Thu Oct 19 15:13:09 2006 +0100
+++ b/xen/acm/acm_chinesewall_hooks.c Thu Oct 19 15:14:25 2006 +0100
@@ -153,6 +153,8 @@ static int chwall_dump_policy(u8 * buf,
ret = ntohl(chwall_buf->chwall_conflict_aggregate_offset) +
sizeof(domaintype_t) * chwall_bin_pol.max_types;
+
+ ret = (ret + 7) & ~7;
if (buf_size < ret)
return -EINVAL;
diff -r 8551487a637d -r d088aec406c0 xen/acm/acm_simple_type_enforcement_hooks.c
--- a/xen/acm/acm_simple_type_enforcement_hooks.c Thu Oct 19 15:13:09
2006 +0100
+++ b/xen/acm/acm_simple_type_enforcement_hooks.c Thu Oct 19 15:14:25
2006 +0100
@@ -149,6 +149,8 @@ ste_dump_policy(u8 *buf, u32 buf_size) {
ste_buf->ste_ssid_offset = htonl(sizeof(struct acm_ste_policy_buffer));
ret = ntohl(ste_buf->ste_ssid_offset) +
sizeof(domaintype_t)*ste_bin_pol.max_ssidrefs*ste_bin_pol.max_types;
+
+ ret = (ret + 7) & ~7;
if (buf_size < ret)
return -EINVAL;
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] [ACM] Add missing alignment operations for the ACM module.,
Xen patchbot-unstable <=
|
|
|
|
|