tools/tests: fix wrong backport of upstream commit 52daa6a8483e4
The backport of upstream commit 52daa6a8483e4 had a bug, correct it.
Fixes 3ac64b375183 ("xen/gnttab: fix gnttab_acquire_resource()")
Signed-off-by Juergen Gross <[email protected]>
--- tools/tests/resource/test-resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/tests/resource/test-resource.c +1 -1
@@ -71,7 +71,7 @@ static void test_gnttab(uint32_t domid, unsigned int nr_frames) res =xenforeignmemory_map_resource ( fh, domid, XENMEM_resource_grant_table, XENMEM_resource_grant_table_id_status,0 ,1 , - (void **)&gnttab,PROT_READ |PROT_WRITE ,0 ); + &addr,PROT_READ |PROT_WRITE ,0 );if ( res ) {
Signature · 1 line
2.35.3
Jan Beulich
Reviewed-byQuoted 4 lines · Juergen Gross
The backport of upstream commit
52daa6a8483e4had a bug, correct it.Fixes 3ac64b375183 ("xen/gnttab: fix gnttab_acquire_resource()")Signed-off-by Juergen Gross <[email protected]>
Reviewed-by Jan Beulich <[email protected]>