rangeset: make inquiry functions tolerate NULL inputs
authorJan Beulich <jbeulich@suse.com>
Fri, 14 Sep 2018 11:04:44 +0000 (13:04 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 14 Sep 2018 11:04:44 +0000 (13:04 +0200)
commitd1caf6ee727b6fa4199f4ce50e9af5b66a6688ff
tree0c5fa6330801714f215c6760e78f08c949194c81
parenta07f444502ad8358e019cf0ae37a3e4b205467b4
rangeset: make inquiry functions tolerate NULL inputs

Rather than special casing the ->iomem_caps check in x86's
get_page_from_l1e() for the dom_xen case, let's be more tolerant in
general, along the lines of rangeset_is_empty(): A never allocated
rangeset can't possibly contain or overlap any range.

Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
master commit: ad0a9f273d6d6f0545cd9b708b2d4be581a6cadd
master date: 2018-08-17 13:54:40 +0200
xen/common/rangeset.c