mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
They allocate two different hypercall buffers, but leak the first allocation if the second one failed due to an early return that bypasses cleanup. Remove the early exit and go through _post() instead. Invoking _post() is benign even if _pre() failed. Fixes:6b85e42709('x86/sysctl: Implement XEN_SYSCTL_get_cpu_policy') Fixes:60529dfeca('x86/domctl: Implement XEN_DOMCTL_get_cpu_policy') Fixes:14ba07e6f8('x86/domctl: Implement XEN_DOMCTL_set_cpumsr_policy') Signed-off-by: Alejandro Vallejo <alejandro.vallejo@cloud.com> Reviewed-by: Anthony PERARD <anthony.perard@citrix.com> master commit:1571ff7a98master date: 2023-12-01 10:53:07 +0100