From c8151cbc42e48b7bb318ee1425663413dfb4b604 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 8 Dec 2008 16:59:18 -0700 Subject: imsm: reverse swapped arguments to posix_memalign in imsm_prepare_update Signed-off-by: Dan Williams --- super-intel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'super-intel.c') diff --git a/super-intel.c b/super-intel.c index de84f27..643420d 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; } } -- cgit