]> xenbits.xensource.com Git - xen.git/commit
x86/mm: Fix infinite loop in get_spage_pages()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 26 Jun 2017 11:58:25 +0000 (12:58 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 26 Jun 2017 13:32:46 +0000 (14:32 +0100)
commit5bba2b362f7ecde1a1a034c0bb0cc882577d8bce
tree0e5ffedd896cad56a142d580a6c114f75e3a631b
parentd5f6383d9a0316a37fb3f05a23d4cce936a262b3
x86/mm: Fix infinite loop in get_spage_pages()

c/s 2b8eb37 switched int i to being unsigned, but the undo logic on failure
relied in i being signed.  As i being unsigned in still preforable, adjust the
undo logic to work with an unsigned i.

Coverity-ID: 1413017
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Konrad Rzeszutek Will <konrad.wilk@oracle.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/mm.c