ia64/xen-unstable

changeset 13992:eecd0361df4a

Fix grant-table initialisation so that domain destruction does not barf.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Fri Feb 16 12:13:33 2007 +0000 (2007-02-16)
parents c4ed5b740a8d
children d5076a33cbb1
files xen/common/grant_table.c
line diff
     1.1 --- a/xen/common/grant_table.c	Fri Feb 16 11:24:10 2007 +0000
     1.2 +++ b/xen/common/grant_table.c	Fri Feb 16 12:13:33 2007 +0000
     1.3 @@ -1329,6 +1329,7 @@ grant_table_create(
     1.4      memset(t->maptrack, 0, max_nr_maptrack_frames() * sizeof(t->maptrack[0]));
     1.5      if ( (t->maptrack[0] = alloc_xenheap_page()) == NULL )
     1.6          goto no_mem_3;
     1.7 +    memset(t->maptrack[0], 0, PAGE_SIZE);
     1.8      t->maptrack_limit = PAGE_SIZE / sizeof(struct grant_mapping);
     1.9      for ( i = 0; i < t->maptrack_limit; i++ )
    1.10          t->maptrack[0][i].ref = i+1;