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>
{
if ( !get_page_and_type(page, d, PGT_writable_page) )
{
- while ( --i >= 0 )
+ while ( i-- > 0 )
put_page_and_type(--page);
return 0;
}