No information lost in the cast, size is > 0 there and fits u64.

Signed-off-by: Andrea Bastoni <[email protected]>
---
 hypervisor/arch/arm64/ti-pvu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hypervisor/arch/arm64/ti-pvu.c b/hypervisor/arch/arm64/ti-pvu.c
index 3b9a29ec..50104212 100644
--- a/hypervisor/arch/arm64/ti-pvu.c
+++ b/hypervisor/arch/arm64/ti-pvu.c
@@ -286,7 +286,7 @@ static int pvu_entrylist_create(u64 ipa, u64 pa, u64 
map_size, u64 flags,
 
                        if (is_aligned(vaddr, page_size) &&
                            is_aligned(paddr, page_size) &&
-                           size >= page_size) {
+                           (u64)size >= page_size) {
 
                                entlist[count].virt_addr = vaddr;
                                entlist[count].phys_addr = paddr;
-- 
2.28.0

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/20201028210933.138379-15-andrea.bastoni%40tum.de.

Reply via email to