kernel_samsung_a53x/drivers/base
Cosmin Tanislav 5c31924089 regmap: detach regmap from dev on regmap_exit
commit 3061e170381af96d1e66799d34264e6414d428a7 upstream.

At the end of __regmap_init(), if dev is not NULL, regmap_attach_dev()
is called, which adds a devres reference to the regmap, to be able to
retrieve a dev's regmap by name using dev_get_regmap().

When calling regmap_exit, the opposite does not happen, and the
reference is kept until the dev is detached.

Add a regmap_detach_dev() function and call it in regmap_exit() to make
sure that the devres reference is not kept.

Cc: stable@vger.kernel.org
Fixes: 72b39f6f2b5a ("regmap: Implement dev_get_regmap()")
Signed-off-by: Cosmin Tanislav <demonsingur@gmail.com>
Rule: add
Link: https://lore.kernel.org/stable/20241128130554.362486-1-demonsingur%40gmail.com
Link: https://patch.msgid.link/20241128131625.363835-1-demonsingur@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-12-17 13:24:29 +01:00
..
firmware_loader Revert "firmware_loader: Block path traversal" 2024-11-24 00:23:16 +01:00
power PM: sleep: wakeirq: fix wake irq warning in system suspend 2024-11-19 09:22:17 +01:00
regmap regmap: detach regmap from dev on regmap_exit 2024-12-17 13:24:29 +01:00
test
arch_topology.c
attribute_container.c
base.h
bus.c driver core: bus: Fix double free in driver API bus_register() 2024-12-17 13:24:18 +01:00
cacheinfo.c
class.c
component.c
container.c
core.c driver core: Introduce device_find_any_child() helper 2024-12-17 13:24:07 +01:00
cpu.c x86/rfds: Mitigate Register File Data Sampling (RFDS) 2024-11-19 09:22:40 +01:00
dd.c driver core: Release all resources during unbind before updating device links 2024-11-18 12:11:17 +01:00
devcoredump.c devcoredump: Send uevent once devcd is ready 2024-11-18 12:11:48 +01:00
devres.c Revert "devres: Initialize an uninitialized struct member" 2024-11-24 00:23:40 +01:00
devtmpfs.c
driver.c
firmware.c
hypervisor.c
init.c
isa.c
Kconfig
Makefile
map.c
memory.c
module.c Revert "driver core: Fix uevent_show() vs driver detach race" 2024-11-23 23:22:05 +01:00
node.c
pinctrl.c
platform-mock.c
platform-msi.c
platform.c
property.c Revert "device property: Add const qualifier to device_get_match_data() parameter" 2024-11-24 00:23:27 +01:00
soc.c
swnode.c software node: Let args be NULL in software_node_get_reference_args 2024-11-18 12:12:49 +01:00
syscore.c
topology.c
transport_class.c