Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Feb 2017 05:52:50 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r313188 - head/sbin/nvmecontrol
Message-ID:  <201702040552.v145qouO002621@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Sat Feb  4 05:52:50 2017
New Revision: 313188
URL: https://svnweb.freebsd.org/changeset/base/313188

Log:
  Put the arguments to aligned_alloc in the right order.

Modified:
  head/sbin/nvmecontrol/firmware.c

Modified: head/sbin/nvmecontrol/firmware.c
==============================================================================
--- head/sbin/nvmecontrol/firmware.c	Sat Feb  4 05:52:14 2017	(r313187)
+++ head/sbin/nvmecontrol/firmware.c	Sat Feb  4 05:52:50 2017	(r313188)
@@ -114,7 +114,7 @@ update_firmware(int fd, uint8_t *payload
 	off = 0;
 	resid = payload_size;
 
-	if ((chunk = aligned_alloc(NVME_MAX_XFER_SIZE, PAGE_SIZE)) == NULL)
+	if ((chunk = aligned_alloc(PAGE_SIZE, NVME_MAX_XFER_SIZE)) == NULL)
 		errx(1, "unable to malloc %d bytes", NVME_MAX_XFER_SIZE);
 
 	while (resid > 0) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702040552.v145qouO002621>