cnss2: Do not notify mhi about pcie link down for QCA6174

Do not invoke the mhi_control_error to notify the pcie link down event
for QCA6174 to avoid NULL pointer access.

Change-Id: I2c899ab51117aef2f9474e83217229b211eb4759
CRs-Fixed: 3335555
This commit is contained in:
Tiger Yu
2022-11-17 17:10:16 +08:00
committed by Madan Koyyalamudi
parent 2fd60f792b
commit e6f30383bf

View File

@@ -1336,8 +1336,11 @@ void cnss_pci_handle_linkdown(struct cnss_pci_data *pci_priv)
}
pci_priv->pci_link_down_ind = true;
spin_unlock_irqrestore(&pci_link_down_lock, flags);
/* Notify MHI about link down*/
mhi_report_error(pci_priv->mhi_ctrl);
if (pci_priv->mhi_ctrl) {
/* Notify MHI about link down*/
mhi_report_error(pci_priv->mhi_ctrl);
}
if (pci_dev->device == QCA6174_DEVICE_ID)
disable_irq(pci_dev->irq);