[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] 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 <wei.liu2@xxxxxxxxxx>
---
Cc: Tim Deegan <tim@xxxxxxx>
Cc: George Dunlap <george.dunlap@xxxxxxxxxxxxx>
Cc: Jan Beulich <jbeulich@xxxxxxxx>
Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
 xen/arch/x86/mm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c
index b20f37f253..b8c705854a 100644
--- a/xen/arch/x86/mm.c
+++ b/xen/arch/x86/mm.c
@@ -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++ )
     {
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.