gnttab: adjust unmap checking of dev_bus_addr
authorJan Beulich <jbeulich@suse.com>
Tue, 7 Sep 2021 07:37:50 +0000 (09:37 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 7 Sep 2021 07:37:50 +0000 (09:37 +0200)
commitc5bf1295b0da079249df5c6e2d7498a8ec336527
tree805efff1fc74995dbad5097f7bfb1ee0d658f6d7
parent82de0a6facf8e4699958654bcbef974e33480ed7
gnttab: adjust unmap checking of dev_bus_addr

There's no point checking ->dev_bus_addr when GNTMAP_device_map isn't
set (and hence the field isn't going to be consumed). And if there is a
mismatch, use the so far unused GNTST_bad_dev_addr error indicator - if
not here, where else would this (so far unused) value be used?

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/common/grant_table.c