ia64/xen-unstable

changeset 8342:3627c3c29b21

Tony found a direct userspace access with his unit test for
grant_table.c. We access "uop->frame_list" (a pointer) directly, rather
than using "op.frame_list".

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
author kaf24@firebug.cl.cam.ac.uk
date Tue Dec 13 17:15:26 2005 +0100 (2005-12-13)
parents 269abc1e4fa5
children 116b7c0a8534
files xen/common/grant_table.c
line diff
     1.1 --- a/xen/common/grant_table.c	Tue Dec 13 17:12:59 2005 +0100
     1.2 +++ b/xen/common/grant_table.c	Tue Dec 13 17:15:26 2005 +0100
     1.3 @@ -579,7 +579,7 @@ gnttab_setup_table(
     1.4          (void)put_user(GNTST_okay, &uop->status);
     1.5          for ( i = 0; i < op.nr_frames; i++ )
     1.6              (void)put_user(gnttab_shared_mfn(d, d->grant_table, i),
     1.7 -                           &uop->frame_list[i]);
     1.8 +                           &op.frame_list[i]);
     1.9      }
    1.10  
    1.11      put_domain(d);