freebsd11_network: Don't panic on bus_describe_intr.

This commit is contained in:
Augustin Cavalier
2018-07-08 15:46:01 -04:00
parent de2ba86e5e
commit 4c43ed243f
+5 -2
View File
@@ -434,8 +434,11 @@ bus_bind_intr(device_t dev, struct resource *res, int cpu)
int bus_describe_intr(device_t dev, struct resource *irq, void *cookie,
const char* fmt, ...)
{
UNIMPLEMENTED();
return B_ERROR;
if (dev->parent == NULL)
return EINVAL;
// we don't really support names for interrupts
return 0;
}