freebsd11_network: Check for NULL in bus_teardown_intr.

Should help with #14235.
This commit is contained in:
Augustin Cavalier
2018-07-10 23:22:37 -04:00
parent ecdc1bc8e7
commit dd9cb9cdc9
@@ -400,6 +400,9 @@ int
bus_teardown_intr(device_t dev, struct resource *res, void *arg)
{
struct internal_intr *intr = (struct internal_intr *)arg;
if (intr == NULL)
return -1;
struct root_device_softc *root = (struct root_device_softc *)dev->root->softc;
if ((root->is_msi || root->is_msix) && gPCIx86 != NULL) {