android_kernel_motorola_sm6375/drivers/base
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Mukesh Ojha 06bcac5c51 devcoredump: Send uevent once devcd is ready
[ Upstream commit af54d778a03853801d681c98c0c2a6c316ef9ca7 ]

dev_coredumpm() creates a devcoredump device and adds it
to the core kernel framework which eventually end up
sending uevent to the user space and later creates a
symbolic link to the failed device. An application
running in userspace may be interested in this symbolic
link to get the name of the failed device.

In a issue scenario, once uevent sent to the user space
it start reading '/sys/class/devcoredump/devcdX/failing_device'
to get the actual name of the device which might not been
created and it is in its path of creation.

To fix this, suppress sending uevent till the failing device
symbolic link gets created and send uevent once symbolic
link is created successfully.

Fixes: 833c95456a ("device coredump: add new device coredump class")
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/1700232572-25823-1-git-send-email-quic_mojha@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-12-13 18:18:18 +01:00
..
firmware_loader
power PM: runtime: Add pm_runtime_get_if_active() 2023-08-30 16:27:12 +02:00
regmap regmap: prevent noinc writes from clobbering cache 2023-11-20 10:30:15 +01:00
test driver core: test_async: fix an error code 2023-09-23 10:59:50 +02:00
arch_topology.c
attribute_container.c
base.h
bus.c
cacheinfo.c
class.c
component.c
container.c
core.c drivers: core: fix kernel-doc markup for dev_err_probe() 2023-08-11 11:54:02 +02:00
cpu.c x86/speculation: Add Gather Data Sampling mitigation 2023-08-08 19:56:35 +02:00
dd.c driver core: Release all resources during unbind before updating device links 2023-12-08 08:44:22 +01:00
devcon.c
devcoredump.c devcoredump: Send uevent once devcd is ready 2023-12-13 18:18:18 +01:00
devres.c
devtmpfs.c
driver.c driver: platform: Add helper for safer setting of driver_override 2023-11-08 11:23:39 +01:00
firmware.c
hypervisor.c
init.c
isa.c
Kconfig
Makefile
map.c
memory.c
module.c
node.c
pinctrl.c
platform-msi.c
platform.c driver: platform: Add helper for safer setting of driver_override 2023-11-08 11:23:39 +01:00
property.c
soc.c
swnode.c
syscore.c
topology.c
transport_class.c