mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-25 18:12:57 +01:00
ctl_backend_block: Correct value of NVME nsdata nuse field
Reported by: Coverity Scan CID: 1545043 Sponsored by: Chelsio Communications
This commit is contained in:
parent
1662e47d91
commit
1f83483d73
@ -1339,7 +1339,7 @@ ctl_be_block_namespace_data(struct ctl_be_block_lun *be_lun,
|
||||
memset(nsdata, 0, sizeof(*nsdata));
|
||||
nsdata->nsze = htole64(be_lun->size_blocks);
|
||||
nsdata->ncap = nsdata->nsze;
|
||||
nsdata->nuse = nsdata->nuse;
|
||||
nsdata->nuse = nsdata->nsze;
|
||||
nsdata->nlbaf = 1 - 1;
|
||||
nsdata->dlfeat = NVMEM(NVME_NS_DATA_DLFEAT_DWZ) |
|
||||
NVMEF(NVME_NS_DATA_DLFEAT_READ, NVME_NS_DATA_DLFEAT_READ_00);
|
||||
|
Loading…
Reference in New Issue
Block a user