]> xenbits.xensource.com Git - xen.git/commit
memory: fix XSA-158 fix
authorJan Beulich <jbeulich@suse.com>
Wed, 9 Dec 2015 12:55:58 +0000 (13:55 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 9 Dec 2015 12:55:58 +0000 (13:55 +0100)
commita84cecd5c70e5db264ad94cbb29af26e6d1b7c40
treed627263a29efd769abb052ba7d5234e58ef7a516
parentb248662bfbb746b0c777a25d66e88388a94ad972
memory: fix XSA-158 fix

For one the uses of domu_max_order and ptdom_max_order were swapped.

And then gcc warns about an unused result of a __must_check function
in the control part of a conditional expression when both other
expressions can be determined by the compiler to produce the same value
(see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68039), which happens
when HAS_PASSTHROUGH is undefined (i.e. for ARM on 4.4 and older).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
master commit: ff841cead287d7913901ba5c4e7628a6958b5bea
master date: 2015-12-09 13:53:13 +0100
xen/common/memory.c