]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/i386: follow-up to "replace order-based range checking of M2P table by linear...
authorJan Beulich <JBeulich@suse.com>
Thu, 15 Sep 2011 07:52:40 +0000 (08:52 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 22 Sep 2011 20:28:51 +0000 (16:28 -0400)
commit38a4ce7fb23557014ec92e3bc36b2e0e76c62aac
tree4b3a79abdc4d79846487eacbaf2034c83d517559
parent5de8a35193f3f0084e9f5f6705f6a0fb715dec68
xen/i386: follow-up to "replace order-based range checking of M2P table by linear one"

The numbers obtained from the hypervisor really can't ever lead to an
overflow here, only the original calculation going through the order
of the range could have. This avoids the (as Jeremy points outs)
somewhat ugly NULL-based calculation here.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/xen/mmu.c