summaryrefslogtreecommitdiff
path: root/Kernel/Storage
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2022-01-23 20:25:05 +0200
committerLinus Groh <mail@linusgroh.de>2022-01-23 20:56:28 +0000
commit0536079ad81fcfd8f5224d54600af3bb1c23a365 (patch)
treea6f41aba3837ba639890df163378dce1d8bef89a /Kernel/Storage
parente0aaac970c9c295b9afe0d20096b7d0fe29ddba5 (diff)
downloadserenity-0536079ad81fcfd8f5224d54600af3bb1c23a365.zip
Kernel/Storage: Use StringView when allocating DMA buffer in NVMeQueue
Diffstat (limited to 'Kernel/Storage')
-rw-r--r--Kernel/Storage/NVMe/NVMeQueue.cpp2
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 {};
}