]> xenbits.xensource.com Git - xen.git/commitdiff
libxc: correct bounce direction in xc_get_device_group()
authorJan Beulich <jbeulich@suse.com>
Fri, 10 Dec 2021 09:25:12 +0000 (10:25 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 10 Dec 2021 09:25:12 +0000 (10:25 +0100)
The array of IDs is an output.

Fixes: 79647c5bc9c6 ("libxc: convert domctl interfaces over to hypercall buffers")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
tools/libs/ctrl/xc_domain.c

index b155d6afd2ef7e1c069d5280ceb0b9f2c2e76072..20b86d986c70c155ec68d670efc83eb918916295 100644 (file)
@@ -1546,7 +1546,8 @@ int xc_get_device_group(
 {
     int rc;
     DECLARE_DOMCTL;
-    DECLARE_HYPERCALL_BOUNCE(sdev_array, max_sdevs * sizeof(*sdev_array), XC_HYPERCALL_BUFFER_BOUNCE_IN);
+    DECLARE_HYPERCALL_BOUNCE(sdev_array, max_sdevs * sizeof(*sdev_array),
+                             XC_HYPERCALL_BUFFER_BOUNCE_OUT);
 
     if ( xc_hypercall_bounce_pre(xch, sdev_array) )
     {