Date: Thu, 1 Feb 2018 19:36:42 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r328714 - stable/11/sbin/nvmecontrol Message-ID: <201802011936.w11JagrM026089@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802011936.w11JagrM026089>