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

[Minios-devel] [UNIKRAFT PATCH] plat/xen: Fix memregion index into _libxenplat_mrd



Signed-off-by: Cristian Banu <cristb@xxxxxxxxx>
---
 plat/xen/memory.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plat/xen/memory.c b/plat/xen/memory.c
index 4b3e94661a14..cb1c3552a0d9 100644
--- a/plat/xen/memory.c
+++ b/plat/xen/memory.c
@@ -133,7 +133,7 @@ int ukplat_memregion_get(int i, struct 
ukplat_memregion_desc *m)
 #endif
                        return -1;
                } else {
-                       memcpy(m, &_libxenplat_mrd[i - 5], sizeof(*m));
+                       memcpy(m, &_libxenplat_mrd[i - 7], sizeof(*m));
                }
                break;
        }
-- 
2.11.0


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

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