svn commit: r316428 - head/usr.sbin/bhyve
Alexander Motin
mav at FreeBSD.org
Sun Apr 2 20:58:00 UTC 2017
Author: mav
Date: Sun Apr 2 20:57:59 2017
New Revision: 316428
URL: https://svnweb.freebsd.org/changeset/base/316428
Log:
Fix variable for sizeof() in previous commit.
MFC after: 2 weeks
Modified:
head/usr.sbin/bhyve/pci_ahci.c
Modified: head/usr.sbin/bhyve/pci_ahci.c
==============================================================================
--- head/usr.sbin/bhyve/pci_ahci.c Sun Apr 2 20:39:51 2017 (r316427)
+++ head/usr.sbin/bhyve/pci_ahci.c Sun Apr 2 20:57:59 2017 (r316428)
@@ -951,7 +951,7 @@ ahci_handle_read_log(struct ahci_port *p
buf16[0x13] = 1; /* SATA NCQ Send and Receive Log -- 1 page */
} else if (cfis[4] == 0x10) { /* NCQ Command Error Log */
memcpy(buf8, p->err_cfis, sizeof(p->err_cfis));
- ahci_checksum(buf8, sizeof(buf8));
+ ahci_checksum(buf8, sizeof(buf));
} else if (cfis[4] == 0x13) { /* SATA NCQ Send and Receive Log */
if (blockif_candelete(p->bctx) && !blockif_is_ro(p->bctx)) {
buf[0x00] = 1; /* SFQ DSM supported */
More information about the svn-src-all
mailing list