nvme_drv: fix wrong identify length

This commit is contained in:
Josef Söntgen 2023-03-21 17:37:12 +01:00 committed by Christian Helmuth
parent 34db8f5360
commit 25c8c0f9e9

View File

@ -1102,7 +1102,7 @@ class Nvme::Controller : Platform::Device,
uint16_t const id = 0;
if (!_nvme_query_ns[id].constructed())
_nvme_query_ns[id].construct(_platform, IDENTIFY, UNCACHED);
_nvme_query_ns[id].construct(_platform, IDENTIFY_LEN, UNCACHED);
Sqe_identify b(_admin_command(Opcode::IDENTIFY, ns[id], QUERYNS_CID));
b.write<Nvme::Sqe::Prp1>(_nvme_query_ns[id]->dma_addr());