diff options
| author | 2026-09-24 22:43:55 +0800 | |
|---|---|---|
| committer | 2026-10-14 16:19:55 +0100 | |
| commit | 5bf2ae8b131d4ae9c0ed5f7aa02532645f512022 (patch) | |
| tree | 1963b14776a52b12180d63fb7ae18d0f4ef749bc /scripts/Makefile.thinlto | |
| parent | dt-bindings: mfd: Add MT6397 sound DAI cells (diff) | |
mfd: ab8500: Fix child device leaks on probe failure
ab8500_probe() registers MFD child devices before completing the
remaining device initialization. If a later MFD registration or sysfs
group creation fails, previously registered child devices are not
removed.
Use devm_mfd_add_devices() so registered MFD child devices are removed
when probe fails.
The issue was identified by a static analysis tool I developed and
confirmed by manual review.
Fixes: cca69b67b3ba ("mfd: Export ab8500 chip id to sysfs")
Fixes: 9c717cf3fa16 ("mfd: ab8500-core: Add device for new RTC version for AB8540 cut2")
Cc: stable@vger.kernel.org
Signed-off-by: Guangshuo Li <lgs201920130244@gmail.com>
Link: https://patch.msgid.link/20260924144355.1604369-1-lgs201920130244@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
