xen/memory: Fix compat XENMEM_acquire_resource for size requests
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 28 Jul 2020 10:23:54 +0000 (11:23 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 12 Jan 2021 18:17:02 +0000 (18:17 +0000)
commit414be7b66349e7dca42bc1fd47c2b2f5b2d27432
tree7939a0d246e3187e15d15cb0d3b0438e01892110
parent0db1ded6b57cb9ebfaefa2682ed817c0a9dd4ae3
xen/memory: Fix compat XENMEM_acquire_resource for size requests

Copy the nr_frames from the structure which actually has the correct value, so
the caller doesn't unconditionally receive 0.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Paul Durrant <paul@xen.org>
xen/common/compat/memory.c