Kernel: Don't panic kernel if no interrupt could be reserved

This commit is contained in:
Bananymous 2024-01-24 14:34:59 +02:00
parent 2cee2a85e6
commit 3441f63298
1 changed files with 2 additions and 1 deletions

View File

@ -472,7 +472,8 @@ namespace Kernel::PCI
}
else
{
ASSERT_NOT_REACHED();
dwarnln("Could not reserve interrupt for PCI device. No MSI, MSI-X or interrupt line is used");
return BAN::Error::from_errno(EFAULT);
}
for (; m_reserved_irq_count < count; m_reserved_irq_count++)