Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8faa7d4c authored by Sandeep Singh's avatar Sandeep Singh
Browse files

cnss2: Avoid change to avoid null pointer dereference



Add change to avoid null pointer dereference and
unregistration of ramdump and subsytem.

Change-Id: Ia7946515e197af34a1f42a662468c848af8d2613
Signed-off-by: default avatarSandeep Singh <sandsing@codeaurora.org>
parent c3b20355
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -3994,9 +3994,14 @@ static void cnss_pci_remove(struct pci_dev *pci_dev)
	cnss_pci_disable_bus(pci_priv);
	cnss_dereg_pci_event(pci_priv);
	cnss_pci_deinit_smmu(pci_priv);
	if (plat_priv) {
		cnss_unregister_ramdump(plat_priv);
		cnss_unregister_subsys(plat_priv);
		plat_priv->bus_priv = NULL;
	} else {
		cnss_pr_err("Plat_priv is null, Unable to unregister ramdump,subsys\n");
	}

}

static const struct pci_device_id cnss_pci_id_table[] = {