aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDana Rubin <dana.rubin@ravellosystems.com>2016-08-04 14:22:30 +0300
committerKevin O'Connor <kevin@koconnor.net>2016-08-05 15:10:11 -0400
commit85037a91179c04f83e5a4bf5b5b6af8a70a9f517 (patch)
treeeb1159bf5e7de8d325186d8562d333d352c0b280
parent8cdf0c5ab96282d821a024a8a382cb93432219fe (diff)
downloadseabios-85037a91179c04f83e5a4bf5b5b6af8a70a9f517.tar.gz
seabios-85037a91179c04f83e5a4bf5b5b6af8a70a9f517.tar.xz
seabios-85037a91179c04f83e5a4bf5b5b6af8a70a9f517.zip
pvscsi: Fix incorrect arguments order in call to memalign_low
First argument should be 'align' and second 'size'. Signed-off-by: <dana.rubin@ravellosystems.com> Signed-off-by: <shmulik.ladkani@ravellosystems.com>
-rw-r--r--src/hw/pvscsi.c2
1 files changed, 1 insertions, 1 deletions
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;