kernel: Name the scoped lock in ATADevice::read()
All checks were successful
continuous-integration/drone/push Build is passing

Is that supposed to work without a name? Looks like it did!
This commit is contained in:
apio 2023-06-17 09:46:28 +02:00
parent 7a78609a85
commit 2be4880278
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -748,7 +748,7 @@ Result<u64> 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<u8>(block_size));