diff options
author | Florian Schmaus <flow@gentoo.org> | 2022-10-19 10:38:35 +0200 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2022-10-19 10:38:35 +0200 |
commit | 4a9cd4d8a4efd8f2e52483117b4009122393c6a6 (patch) | |
tree | 8a467d1618431f5353fa676ca58b32bb18ba21aa /0066-tools-tests-fix-wrong-backport-of-upstream-commit-52.patch | |
parent | Xen 4.15.4-pre-patchset-0.1 (diff) | |
download | xen-upstream-patches-9ba79f9e31f3953c34ad245eb31574183837a9df.tar.gz xen-upstream-patches-9ba79f9e31f3953c34ad245eb31574183837a9df.tar.bz2 xen-upstream-patches-9ba79f9e31f3953c34ad245eb31574183837a9df.zip |
Xen 4.15.4-pre-patchset-14.15.4-pre-patchset-1
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to '0066-tools-tests-fix-wrong-backport-of-upstream-commit-52.patch')
-rw-r--r-- | 0066-tools-tests-fix-wrong-backport-of-upstream-commit-52.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/0066-tools-tests-fix-wrong-backport-of-upstream-commit-52.patch b/0066-tools-tests-fix-wrong-backport-of-upstream-commit-52.patch new file mode 100644 index 0000000..24b9576 --- /dev/null +++ b/0066-tools-tests-fix-wrong-backport-of-upstream-commit-52.patch @@ -0,0 +1,31 @@ +From 0d233924d4b0f676056856096e8761205add3ee8 Mon Sep 17 00:00:00 2001 +From: Juergen Gross <jgross@suse.com> +Date: Wed, 12 Oct 2022 17:31:44 +0200 +Subject: [PATCH 66/67] 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 <jgross@suse.com> +Reviewed-by: Jan Beulich <jbeulich@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 bf485baff2b4..51a8f4a000f6 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.37.3 + |