From: Jan Beulich Date: Fri, 10 Dec 2021 09:25:12 +0000 (+0100) Subject: libxc: correct bounce direction in xc_get_device_group() X-Git-Tag: archive/raspbian/4.17.0-1+rpi1^2~33^2~1238 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=22592f1c5e789e4606f0a6fb88e5f1244a8384c9;p=xen.git libxc: correct bounce direction in xc_get_device_group() The array of IDs is an output. Fixes: 79647c5bc9c6 ("libxc: convert domctl interfaces over to hypercall buffers") Signed-off-by: Jan Beulich Reviewed-by: Juergen Gross --- diff --git a/tools/libs/ctrl/xc_domain.c b/tools/libs/ctrl/xc_domain.c index b155d6afd2..20b86d986c 100644 --- a/tools/libs/ctrl/xc_domain.c +++ b/tools/libs/ctrl/xc_domain.c @@ -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) ) {