linux/drivers/pci/endpoint
Dan Carpenter 88aa0b599b PCI: endpoint: Fix double free in __pci_epc_create()
[ Upstream commit c9501d2689 ]

The pci_epc_release() function frees "epc" so the kfree() on the next line
is a double free.  Drop the redundant free.

Fixes: 7711cbb486 ("PCI: endpoint: Fix WARN() when an endpoint driver is removed")
Link: https://lore.kernel.org/r/2ce68694-87a7-4c06-b8a4-9870c891b580@moroto.mountain
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-20 11:59:23 +01:00
..
functions Merge branch 'pci/misc' 2023-08-29 11:03:57 -05:00
Kconfig PCI: consolidate PCI config entry in drivers/pci 2018-11-23 11:45:34 +09:00
Makefile PCI: Add SPDX GPL-2.0 when no license was specified 2018-01-26 11:45:16 -06:00
pci-ep-cfs.c PCI: endpoint: Return error if EPC is started/stopped multiple times 2023-06-23 15:05:11 -05:00
pci-epc-core.c PCI: endpoint: Fix double free in __pci_epc_create() 2023-11-20 11:59:23 +01:00
pci-epc-mem.c PCI: endpoint: Add kernel-doc for pci_epc_mem_init() API 2023-08-26 16:54:46 +00:00
pci-epf-core.c PCI: endpoint: Pass EPF device ID to the probe function 2023-06-23 15:05:03 -05:00