Fix variable for sizeof() in previous commit.

MFC after:	2 weeks
This commit is contained in:
Alexander Motin 2017-04-02 20:57:59 +00:00
parent 4e183a48fe
commit ec46b9208d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=316428

View file

@ -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 */