Kernel: Don't panic kernel if no interrupt could be reserved
This commit is contained in:
parent
2cee2a85e6
commit
3441f63298
|
@ -472,7 +472,8 @@ namespace Kernel::PCI
|
||||||
}
|
}
|
||||||
else
|
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++)
|
for (; m_reserved_irq_count < count; m_reserved_irq_count++)
|
||||||
|
|
Loading…
Reference in New Issue