diff --git a/mlinux/moal_pcie.c b/mlinux/moal_pcie.c index 312919d..c699295 100644 --- a/mlinux/moal_pcie.c +++ b/mlinux/moal_pcie.c @@ -699,6 +699,12 @@ static void woal_pcie_shutdown(struct pci_dev *dev) return; } handle = card->handle; + if (!handle) { + PRINTM(MINFO, "PCIE card handle is null!\n"); + pci_disable_device(dev); + LEAVE(); + return; + } if (handle->second_mac) goto done; #if defined(PCIE9098) || defined(PCIE9097) || defined(PCIEAW693) || \