[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [IA64] Fix thash_init()



# HG changeset patch
# User awilliam@xxxxxxxxxxxx
# Date 1174403769 21600
# Node ID e014b94333aa5ff5420c7a533f12ccd028139fa0
# Parent  1584263f9fc50d16cfc5e060e996eb8025de3d31
[IA64] Fix thash_init()

Lost initializating page_flag of the last member in cch.

Signed-off-by: Zhang Xin <xing.z.zhang@xxxxxxxxx>
---
 xen/arch/ia64/vmx/vtlb.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff -r 1584263f9fc5 -r e014b94333aa xen/arch/ia64/vmx/vtlb.c
--- a/xen/arch/ia64/vmx/vtlb.c  Thu Mar 15 09:04:23 2007 -0600
+++ b/xen/arch/ia64/vmx/vtlb.c  Tue Mar 20 09:16:09 2007 -0600
@@ -642,7 +642,7 @@ void thash_init(thash_cb_t *hcb, u64 sz)
     }while(num);
     
     hcb->cch_freelist = p = hcb->cch_buf;
-    num = (hcb->cch_sz/sizeof(thash_data_t))-1;
+    num = hcb->cch_sz / sizeof(thash_data_t);
     do{
         p->page_flags = 0;
         p->itir = 0;
@@ -650,6 +650,6 @@ void thash_init(thash_cb_t *hcb, u64 sz)
         p++;
         num--;
     }while(num);
-    p->itir = 0;
-    p->next = NULL;
-}
+
+    (p - 1)->next = NULL;
+}

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.