diff options
author | Liav A <liavalb@gmail.com> | 2022-01-23 20:27:21 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-01-23 20:56:28 +0000 |
commit | 0778043d738a6b1b438ec6f327ea7c6aea242079 (patch) | |
tree | 2f6714bee524a094c396ae7331af77cc39c8360e /Kernel | |
parent | 0536079ad81fcfd8f5224d54600af3bb1c23a365 (diff) | |
download | serenity-0778043d738a6b1b438ec6f327ea7c6aea242079.zip |
Kernel: Use generic string when allocating DMA buffer to NVMeQueue
We don't necessarily create a DMA buffer just for "Admin CQ queue", so
don't hardcode it when allocating such buffer.
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/Storage/NVMe/NVMeQueue.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Storage/NVMe/NVMeQueue.cpp b/Kernel/Storage/NVMe/NVMeQueue.cpp index 6df3f129cc..26a2ab8f90 100644 --- a/Kernel/Storage/NVMe/NVMeQueue.cpp +++ b/Kernel/Storage/NVMe/NVMeQueue.cpp @@ -41,7 +41,7 @@ UNMAP_AFTER_INIT NVMeQueue::NVMeQueue(u16 qid, u8 irq, u32 q_depth, OwnPtr<Memor UNMAP_AFTER_INIT ErrorOr<void> NVMeQueue::create() { // DMA region for RW operation. For now the requests don't exceed more than 4096 bytes(Storage device takes of it) - auto buffer = TRY(MM.allocate_dma_buffer_page("Admin CQ queue"sv, Memory::Region::Access::ReadWrite, m_rw_dma_page)); + auto buffer = TRY(MM.allocate_dma_buffer_page("NVMe Queue"sv, Memory::Region::Access::ReadWrite, m_rw_dma_page)); m_rw_dma_region = move(buffer); return {}; } |