[SeaBIOS] [PATCH 1/2] pvscsi: Fix incorrect arguments order in call to memalign_low

Dana Rubin dana.rubin at oracle.com
Thu Aug 4 13:22:30 CEST 2016


From: Dana Rubin <dana.rubin at ravellosystems.com>

First argument should be 'align' and second 'size'.

Signed-off-by: <dana.rubin at ravellosystems.com>
Signed-off-by: <shmulik.ladkani at ravellosystems.com>
---
 src/hw/pvscsi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/hw/pvscsi.c b/src/hw/pvscsi.c
index 05cbd91..7535493 100644
--- a/src/hw/pvscsi.c
+++ b/src/hw/pvscsi.c
@@ -167,7 +167,7 @@ pvscsi_init_rings(void *iobase, struct pvscsi_ring_dsc_s **ring_dsc)
 {
     struct PVSCSICmdDescSetupRings cmd = {0,};
 
-    struct pvscsi_ring_dsc_s *dsc = memalign_low(sizeof(*dsc), PAGE_SIZE);
+    struct pvscsi_ring_dsc_s *dsc = memalign_low(PAGE_SIZE, sizeof(*dsc));
     if (!dsc) {
         warn_noalloc();
         return;
-- 
1.9.1




More information about the SeaBIOS mailing list