From: Dana Rubin Date: Thu, 4 Aug 2016 11:22:30 +0000 (+0300) Subject: pvscsi: Fix incorrect arguments order in call to memalign_low X-Git-Tag: rel-1.10.0~29 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=85037a91179c04f83e5a4bf5b5b6af8a70a9f517;p=seabios.git pvscsi: Fix incorrect arguments order in call to memalign_low First argument should be 'align' and second 'size'. Signed-off-by: Signed-off-by: --- 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;