ia64/xen-unstable
changeset 15559:2796311c6a55
[IA64] Fix a memory allocation bug in MCA
Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com>
Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com>
author | Alex Williamson <alex.williamson@hp.com> |
---|---|
date | Sun Jul 15 13:32:56 2007 -0600 (2007-07-15) |
parents | f536eb8576ee |
children | 834ac63f4894 |
files | xen/arch/ia64/linux-xen/mca.c |
line diff
1.1 --- a/xen/arch/ia64/linux-xen/mca.c Wed Jul 11 11:32:30 2007 -0600 1.2 +++ b/xen/arch/ia64/linux-xen/mca.c Sun Jul 15 13:32:56 2007 -0600 1.3 @@ -184,7 +184,7 @@ static ia64_state_log_t ia64_state_log[I 1.4 #define IA64_LOG_ALLOCATE(it, size) \ 1.5 do { \ 1.6 unsigned int pageorder; \ 1.7 - pageorder = get_order_from_bytes(sizeof(struct ia64_mca_cpu)); \ 1.8 + pageorder = get_order_from_bytes(size); \ 1.9 ia64_state_log[it].isl_log[IA64_LOG_CURR_INDEX(it)] = \ 1.10 (ia64_err_rec_t *)alloc_xenheap_pages(pageorder); \ 1.11 ia64_state_log[it].isl_log[IA64_LOG_NEXT_INDEX(it)] = \