Increase the mask from 15 to 255 or otherwise NVME_FEAT_SOFTWARE_PROGRESS

will never be reached.

Discussed with:	Leon Dang and Darius Mihai <dariusmihaim@gmail.com>
MFC after:	1 week.
Sponsored by:	iXsystems Inc.
This commit is contained in:
Marcelo Araujo 2018-08-16 06:20:25 +00:00
parent 7db2f1fe08
commit e30993c2a6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=337886

View File

@ -653,7 +653,7 @@ static int
nvme_opc_set_features(struct pci_nvme_softc* sc, struct nvme_command* command,
struct nvme_completion* compl)
{
int feature = command->cdw10 & 0x0F;
int feature = command->cdw10 & 0xFF;
uint32_t iv;
DPRINTF(("%s feature 0x%x\r\n", __func__, feature));
@ -748,7 +748,7 @@ static int
nvme_opc_get_features(struct pci_nvme_softc* sc, struct nvme_command* command,
struct nvme_completion* compl)
{
int feature = command->cdw10 & 0x0F;
int feature = command->cdw10 & 0xFF;
DPRINTF(("%s feature 0x%x\r\n", __func__, feature));