diff --git a/kernel/src/arch/x86_64/disk/ATA.cpp b/kernel/src/arch/x86_64/disk/ATA.cpp index 5d61c7a6..7786b6a8 100644 --- a/kernel/src/arch/x86_64/disk/ATA.cpp +++ b/kernel/src/arch/x86_64/disk/ATA.cpp @@ -748,7 +748,7 @@ Result ATADevice::read(u8* buf, usize offset, usize size) const auto block_size = m_drive->block_size(); - ScopedKMutexLock<100>(m_drive->channel()->lock()); + ScopedKMutexLock<100> lock(m_drive->channel()->lock()); // FIXME: Don't always allocate this if we don't need it. auto* temp = TRY(make_array(block_size));