android_kernel_motorola_sm6375/drivers/base
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Takashi Iwai b55ed54016 UPSTREAM: driver: core: Fix list corruption after device_del()
The device_links_purge() function (called from device_del()) tries to
remove the links.needs_suppliers list entry, but it's using
list_del(), hence it doesn't initialize after the removal.  This is OK
for normal cases where device_del() is called via device_destroy().
However, it's not guaranteed that the device object will be really
deleted soon after device_del().  In a minor case like HD-audio codec
reconfiguration that re-initializes the device after device_del(), it
may lead to a crash by the corrupted list entry.

As a simple fix, replace list_del() with list_del_init() in order to
make the list intact after the device_del() call.

Fixes: e2ae9bcc4aaa ("driver core: Add support for linking devices during device addition")
Cc: <[email protected]>
Reviewed-by: Rafael J. Wysocki <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: Saravana Kannan <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
(cherry picked from commit 66482f640755b31cb94371ff6cef17400cda6db5)
Bug: 187129171
Signed-off-by: Connor O'Brien <[email protected]>
Change-Id: If1c0eb2511292b430eb275e72f7e4ccf55b4f96b
2021-05-03 20:55:52 -07:00
..
firmware_loader This is the 5.4.67 stable release 2020-09-24 12:50:01 +02:00
power ANDROID: power: export pm_system_cancel_wakeup 2021-04-26 08:35:37 +01:00
regmap regmap: fix page selection for noinc writes 2020-10-01 13:18:20 +02:00
test driver core: Fix test_async_driver_probe if NUMA is disabled 2020-02-01 09:34:36 +00:00
arch_topology.c This is the 5.4.69 stable release 2020-10-01 18:00:35 +02:00
attribute_container.c
base.h UPSTREAM: driver core: Don't do deferred probe in parallel with kernel_init thread 2020-08-06 18:50:43 -07:00
bus.c
cacheinfo.c
class.c
component.c component: Silence bind error on -EPROBE_DEFER 2020-05-27 17:46:31 +02:00
container.c
core.c UPSTREAM: driver: core: Fix list corruption after device_del() 2021-05-03 20:55:52 -07:00
cpu.c x86/speculation: Add Special Register Buffer Data Sampling (SRBDS) mitigation 2020-06-10 20:24:57 +02:00
dd.c This is the 5.4.76 stable release 2020-11-10 15:10:23 +01:00
devcon.c
devcoredump.c
devres.c
devtmpfs.c
driver.c
firmware.c
hypervisor.c
init.c
isa.c
Kconfig
Makefile
map.c
memory.c drivers/base/memory.c: indicate all memory blocks as removable 2020-04-01 11:02:02 +02:00
module.c
node.c This is the 5.4.70 stable release 2020-10-07 08:50:29 +02:00
pinctrl.c
platform-msi.c
platform.c drivers: base: Fix NULL pointer exception in __platform_driver_probe() if a driver developer is foolish 2020-06-24 17:50:24 +02:00
property.c
soc.c
swnode.c Revert "software node: Simplify software_node_release() function" 2020-05-10 10:31:30 +02:00
syscore.c
topology.c
transport_class.c