Home
last modified time | relevance | path

Searched hist:"9 eef6a5c3b0bf90eb292d462ea267bcb6ad1c334" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/pci/endpoint/
H A Dpci-epf-core.cdiff 9eef6a5c3b0bf90eb292d462ea267bcb6ad1c334 Wed Feb 28 11:32:19 CST 2018 Rolf Evers-Fischer <rolf.evers.fischer@aptiv.com> PCI: endpoint: Fix kernel panic after put_device()

'put_device()' calls the relase function 'pci_epf_dev_release()',
which already frees 'epf->name' and 'epf'.

Therefore we must not free them again after 'put_device()'.

Fixes: 5e8cb4033807 ("PCI: endpoint: Add EP core layer to enable EP controller and EP functions")

Signed-off-by: Rolf Evers-Fischer <rolf.evers.fischer@aptiv.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>