diff options
author | Liav A <liavalb@gmail.com> | 2022-01-23 20:25:05 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-01-23 20:56:28 +0000 |
commit | 0536079ad81fcfd8f5224d54600af3bb1c23a365 (patch) | |
tree | a6f41aba3837ba639890df163378dce1d8bef89a /Kernel/Storage | |
parent | e0aaac970c9c295b9afe0d20096b7d0fe29ddba5 (diff) | |
download | serenity-0536079ad81fcfd8f5224d54600af3bb1c23a365.zip |
Kernel/Storage: Use StringView when allocating DMA buffer in NVMeQueue
Diffstat (limited to 'Kernel/Storage')
-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 8d5c2a4ffd..6df3f129cc 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", Memory::Region::Access::ReadWrite, m_rw_dma_page)); + auto buffer = TRY(MM.allocate_dma_buffer_page("Admin CQ queue"sv, Memory::Region::Access::ReadWrite, m_rw_dma_page)); m_rw_dma_region = move(buffer); return {}; } |