x86/mm: revert to int type in get_spage_pages
PATCH 1/1 x86/mm: revert to int type in get_spage_pages
2b8eb379930 changed the type of i to be unsigned, but the inner loop depends on it being a signed type.
Coverity-ID: 1413017
Signed-off-by Wei Liu <[email protected]>
---
Cc: Tim Deegan <[email protected]>
Cc: George Dunlap <[email protected]>
Cc: Jan Beulich <[email protected]>
Cc: Andrew Cooper <[email protected]>
--- xen/arch/x86/mm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/x86/mm.c +1 -1
@@ -2681,7 +2681,7 @@ int get_page_type_preemptible(struct page_info *page, unsigned long type)static int get_spage_pages (struct page_info *page,struct domain *d) { -unsigned int i; +int i;for ( i =0 ; i < (1u <<PAGETABLE_ORDER ); i++, page++ ) {
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel