svn commit: r328714 - stable/11/sbin/nvmecontrol

Alexander Motin mav at FreeBSD.org
Thu Feb 1 19:36:43 UTC 2018


Author: mav
Date: Thu Feb  1 19:36:42 2018
New Revision: 328714
URL: https://svnweb.freebsd.org/changeset/base/328714

Log:
  MFC r313188 (by imp):
  Put the arguments to aligned_alloc in the right order.

Modified:
  stable/11/sbin/nvmecontrol/firmware.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sbin/nvmecontrol/firmware.c
==============================================================================
--- stable/11/sbin/nvmecontrol/firmware.c	Thu Feb  1 19:35:34 2018	(r328713)
+++ stable/11/sbin/nvmecontrol/firmware.c	Thu Feb  1 19:36:42 2018	(r328714)
@@ -114,7 +114,7 @@ update_firmware(int fd, uint8_t *payload, int32_t payl
 	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) {


More information about the svn-src-all mailing list