tools/libxengnttab: correct size of allocated memory
authorJuergen Gross <jgross@suse.com>
Wed, 20 May 2020 08:35:01 +0000 (10:35 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 11 Jun 2020 16:13:20 +0000 (17:13 +0100)
commitaad20e538d7ba0e36f5ed8d2bebb74096e3a6d7f
tree0eebcde677fd19f802b58d031b385a2859db83f1
parent7028534d8482d25860c4d1aa8e45f0b911abfc5a
tools/libxengnttab: correct size of allocated memory

The size of the memory allocated for the IOCTL_GNTDEV_MAP_GRANT_REF
ioctl() parameters is calculated wrong, which results in too much
memory allocated.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Release-acked-by: Paul Durrant <paul@xen.org>
tools/libs/gnttab/freebsd.c
tools/libs/gnttab/linux.c