[PATCH 2/2] xen/setup: warn on bad Xen-supplied memory map

2014-10-13 Thread Martin Kelly
Currently, we don't check the return code of sanitize_e820_map. However, if the Xen-supplied memory map is invalid, then sanitize_e820_map will return without doing anything, potentially leading to errors later on. Add a WARN_ON in case sanitize_e820_map detects an invalid memory map.

[PATCH 2/2] xen/setup: warn on bad Xen-supplied memory map

2014-10-13 Thread Martin Kelly
Currently, we don't check the return code of sanitize_e820_map. However, if the Xen-supplied memory map is invalid, then sanitize_e820_map will return without doing anything, potentially leading to errors later on. Add a WARN_ON in case sanitize_e820_map detects an invalid memory map.