svn commit: r313188 - head/sbin/nvmecontrol
Warner Losh
imp at FreeBSD.org
Sat Feb 4 05:52:52 UTC 2017
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) {
More information about the svn-src-all
mailing list