aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pcie/aer/aerdrv.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/pcie/aer/aerdrv.c')
-rw-r--r--drivers/pci/pcie/aer/aerdrv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/pcie/aer/aerdrv.c b/drivers/pci/pcie/aer/aerdrv.c
index 4e845ab18643..14081f807e50 100644
--- a/drivers/pci/pcie/aer/aerdrv.c
+++ b/drivers/pci/pcie/aer/aerdrv.c
@@ -179,7 +179,8 @@ static void aer_remove(struct pcie_device *dev)
179 179
180 wait_event(rpc->wait_release, rpc->prod_idx == rpc->cons_idx); 180 wait_event(rpc->wait_release, rpc->prod_idx == rpc->cons_idx);
181 181
182 aer_delete_rootport(rpc); 182 aer_disable_rootport(rpc);
183 kfree(rpc);
183 set_service_data(dev, NULL); 184 set_service_data(dev, NULL);
184 } 185 }
185} 186}