From 6f295d26ad991469b9064aefe31d36dc58c466cc Mon Sep 17 00:00:00 2001 From: mav Date: Sun, 2 Apr 2017 20:57:59 +0000 Subject: [PATCH] Fix variable for sizeof() in previous commit. MFC after: 2 weeks --- usr.sbin/bhyve/pci_ahci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/bhyve/pci_ahci.c b/usr.sbin/bhyve/pci_ahci.c index f59fa28712ea..032241ec52de 100644 --- a/usr.sbin/bhyve/pci_ahci.c +++ b/usr.sbin/bhyve/pci_ahci.c @@ -951,7 +951,7 @@ ahci_handle_read_log(struct ahci_port *p, int slot, uint8_t *cfis) 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 */