Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Apr 2017 20:57:59 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r316428 - head/usr.sbin/bhyve
Message-ID:  <201704022057.v32Kvx5R088789@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704022057.v32Kvx5R088789>