Kernel/Storage: Check IDE error condition under the correct lock

This bug was probably around for a very long time, but it is noticeable
only under VirtualBox as it generated an non fatal error which caused a
kernel panic because we VERIFYed the wrong lock to be locked.
This commit is contained in:
Liav A 2022-07-15 11:10:46 +03:00 committed by Andreas Kling
parent ebbc38cd2a
commit 95238bdb16
Notes: sideshowbarker 2024-07-17 18:38:54 +09:00

View file

@ -159,7 +159,7 @@ static void print_ide_status(u8 status)
void IDEChannel::try_disambiguate_error()
{
VERIFY(m_lock.is_locked());
VERIFY(m_request_lock.is_locked());
dbgln("IDEChannel: Error cause:");
switch (m_device_error) {