kernel: Name the scoped lock in ATADevice::read()
All checks were successful
continuous-integration/drone/push Build is passing
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:
parent
7a78609a85
commit
2be4880278
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user