Kernel: Don't panic if uninitialized AHCI device gets an interrupt

This commit is contained in:
Bananymous 2024-11-21 20:40:57 +02:00
parent c7afd46016
commit 8e624ca85a
1 changed files with 4 additions and 2 deletions

View File

@ -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);
}
}