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

Commit 5e1c81e1 authored by Yue Ma's avatar Yue Ma
Browse files

cnss2: Free saved default PCIe config space



During PCIe bus enable, it saves a golden config space as default
config space. Hence free it in PCIe bus disable also.

Change-Id: I25f089ba28d78bd2122ccb813550bfa0d4513b0d
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent 2cf1df2b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3854,6 +3854,7 @@ static void cnss_pci_disable_bus(struct cnss_pci_data *pci_priv)

	pci_clear_master(pci_dev);
	pci_load_and_free_saved_state(pci_dev, &pci_priv->saved_state);
	pci_load_and_free_saved_state(pci_dev, &pci_priv->default_state);

	if (pci_priv->bar) {
		pci_iounmap(pci_dev, pci_priv->bar);