[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-ia64-devel] [PATCH]Fix a memory allocation bug in MCA
Hi all, I found a bug of memory allocation for MCA error logs. The following patch fixes it. Thanks, KAZ Signed-off-by: Kazuhiro Suzuki <kaz@xxxxxxxxxxxxxx> --- xen/arch/ia64/linux-xen/mca.c.orig 2007-07-11 17:33:03.000000000 +0900 +++ xen/arch/ia64/linux-xen/mca.c 2007-07-12 11:50:39.000000000 +0900 @@ -184,7 +184,7 @@ #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-ia64-devel mailing list Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-ia64-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |