Kernel: Don't panic if uninitialized AHCI device gets an interrupt
This commit is contained in:
parent
c7afd46016
commit
8e624ca85a
|
@ -82,8 +82,10 @@ namespace Kernel
|
|||
{
|
||||
if (is & (1 << i))
|
||||
{
|
||||
ASSERT(m_devices[i]);
|
||||
m_devices[i]->handle_irq();
|
||||
if (m_devices[i])
|
||||
m_devices[i]->handle_irq();
|
||||
else
|
||||
dwarnln("ignoring interrupt to device {}", i);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue