Skip to contentSkip to conversation

x86/mm: revert to int type in get_spage_pages

PATCH New Wei Liu 1 participant 1 message Jun 26, 2017

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

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

---
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
index b20f37f253..b8c705854a 100644
@@ -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