]> xenbits.xensource.com Git - xen.git/commit
xen/memory: Fix compat XENMEM_acquire_resource for size requests
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 21 Jan 2021 15:20:00 +0000 (16:20 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 21 Jan 2021 15:20:00 +0000 (16:20 +0100)
commit7f99c05ded1999e9cf85a9d1f3586dfa45daa531
treec038b77425103d205fb409579b8388223e1789fb
parentcad784fb8fcfd8f32ca4a787a95abbabc0059736
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>
master commit: 414be7b66349e7dca42bc1fd47c2b2f5b2d27432
master date: 2021-01-12 18:17:02 +0000
xen/common/compat/memory.c