From: Juergen Gross Date: Fri, 4 Sep 2015 12:50:33 +0000 (+0200) Subject: xen: use correct type for HYPERVISOR_memory_op() X-Git-Tag: omap-for-v4.3/fixes-rc5~36^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24f775a6605a8ffc697c0767fc7ea85656ddb958;p=pandora-kernel.git xen: use correct type for HYPERVISOR_memory_op() HYPERVISOR_memory_op() is defined to return an "int" value. This is wrong, as the Xen hypervisor will return "long". The sub-function XENMEM_maximum_reservation returns the maximum number of pages for the current domain. An int will overflow for a domain configured with 8TB of memory or more. Correct this by using the correct type. Signed-off-by: Juergen Gross Signed-off-by: David Vrabel --- Reading git-diff-tree failed