From: Dan Williams Date: Mon, 8 Dec 2008 23:59:18 +0000 (-0700) Subject: imsm: reverse swapped arguments to posix_memalign in imsm_prepare_update X-Git-Tag: mdadm-3.0-devel3~56^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8151cbc42e48b7bb318ee1425663413dfb4b604;p=thirdparty%2Fmdadm.git imsm: reverse swapped arguments to posix_memalign in imsm_prepare_update Signed-off-by: Dan Williams --- diff --git a/super-intel.c b/super-intel.c index de84f275..643420d5 100644 --- a/super-intel.c +++ b/super-intel.c @@ -4041,7 +4041,7 @@ static void imsm_prepare_update(struct supertype *st, free(super->next_buf); super->next_len = buf_len; - if (posix_memalign(&super->next_buf, buf_len, 512) != 0) + if (posix_memalign(&super->next_buf, 512, buf_len) != 0) super->next_buf = NULL; } }