Centos-kernel-stream-9/drivers/base
Jon Medhurst (Tixy) 57480484f9 component: Detach components when deleting master struct
component_master_add_with_match calls find_components which, if any
components already exist, it attaches to the master struct. However, if
we later encounter an error the master struct is deleted, leaving
components with a dangling pointer to it.

If the error was a temporary one, e.g. for probe deferral, then when
the master device is re-probed, it will fail to find the required
components as they appear to already be attached to a master.

Fix this by nulling components pointers to the master struct when it is
deleted. This code is factored out into a separate function so it can be
shared with component_master_del.

Signed-off-by: Jon Medhurst <tixy@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2016-01-27 19:07:51 +00:00
..
power More power management and ACPI updates for v4.4-rc1 2015-11-12 11:50:33 -08:00
regmap driver core update for 4.4-rc1 2015-11-04 21:50:37 -08:00
Kconfig
Makefile
attribute_container.c
base.h
bus.c
cacheinfo.c
class.c
component.c component: Detach components when deleting master struct 2016-01-27 19:07:51 +00:00
container.c
core.c
cpu.c
dd.c
devcoredump.c
devres.c
devtmpfs.c
dma-coherent.c
dma-contiguous.c driver core update for 4.4-rc1 2015-11-04 21:50:37 -08:00
dma-mapping.c
driver.c
firmware.c
firmware_class.c
hypervisor.c
init.c
isa.c
map.c
memory.c
module.c
node.c
pinctrl.c
platform-msi.c
platform.c
property.c device property: ACPI: Remove unused DMA APIs 2015-11-07 01:29:22 +01:00
soc.c
syscore.c
topology.c
transport_class.c