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 */
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to