All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH-for-4.15] tools/tests: fix wrong backport of upstream commit 52daa6a8483e4
@ 2022-10-12  6:45 Juergen Gross
  2022-10-12  6:48 ` Jan Beulich
  0 siblings, 1 reply; 2+ messages in thread
From: Juergen Gross @ 2022-10-12  6:45 UTC (permalink / raw
  To: xen-devel; +Cc: Juergen Gross, Ian Jackson, Wei Liu

The backport of upstream commit 52daa6a8483e4 had a bug, correct it.

Fixes: 3ac64b375183 ("xen/gnttab: fix gnttab_acquire_resource()")
Signed-off-by: Juergen Gross <jgross@suse.com>
---
 tools/tests/resource/test-resource.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/tests/resource/test-resource.c b/tools/tests/resource/test-resource.c
index bf485baff2..51a8f4a000 100644
--- a/tools/tests/resource/test-resource.c
+++ b/tools/tests/resource/test-resource.c
@@ -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 )
     {
-- 
2.35.3



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH-for-4.15] tools/tests: fix wrong backport of upstream commit 52daa6a8483e4
  2022-10-12  6:45 [PATCH-for-4.15] tools/tests: fix wrong backport of upstream commit 52daa6a8483e4 Juergen Gross
@ 2022-10-12  6:48 ` Jan Beulich
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Beulich @ 2022-10-12  6:48 UTC (permalink / raw
  To: Juergen Gross; +Cc: Ian Jackson, Wei Liu, xen-devel

On 12.10.2022 08:45, Juergen Gross wrote:
> The backport of upstream commit 52daa6a8483e4 had a bug, correct it.
> 
> Fixes: 3ac64b375183 ("xen/gnttab: fix gnttab_acquire_resource()")
> Signed-off-by: Juergen Gross <jgross@suse.com>

Reviewed-by: Jan Beulich <jbeulich@suse.com>




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-10-12  6:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-12  6:45 [PATCH-for-4.15] tools/tests: fix wrong backport of upstream commit 52daa6a8483e4 Juergen Gross
2022-10-12  6:48 ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.