Mailing List Archive

[xen-unstable] [IA64] Fix a memory allocation bug in MCA
# HG changeset patch
# User Alex Williamson <alex.williamson@hp.com>
# Date 1184527976 21600
# Node ID 2796311c6a5537cff38bba20b74a1e64a1d9e909
# Parent f536eb8576eeb7363212911b02fbaff4918172df
[IA64] Fix a memory allocation bug in MCA

Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com>
---
xen/arch/ia64/linux-xen/mca.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -r f536eb8576ee -r 2796311c6a55 xen/arch/ia64/linux-xen/mca.c
--- a/xen/arch/ia64/linux-xen/mca.c Wed Jul 11 11:32:30 2007 -0600
+++ b/xen/arch/ia64/linux-xen/mca.c Sun Jul 15 13:32:56 2007 -0600
@@ -184,7 +184,7 @@ static ia64_state_log_t ia64_state_log[.I
#define IA64_LOG_ALLOCATE(it, size) \
do { \
unsigned int pageorder; \
- pageorder = get_order_from_bytes(sizeof(struct ia64_mca_cpu)); \
+ pageorder = get_order_from_bytes(size); \
ia64_state_log[it].isl_log[IA64_LOG_CURR_INDEX(it)] = \
(ia64_err_rec_t *)alloc_xenheap_pages(pageorder); \
ia64_state_log[it].isl_log[IA64_LOG_NEXT_INDEX(it)] = \

_______________________________________________
Xen-changelog mailing list
Xen-changelog@lists.xensource.com
http://lists.xensource.com/xen-changelog