]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: greybus: arche-platform: fix memleak on probe failure
authorJohan Hovold <johan@kernel.org>
Fri, 19 Dec 2025 10:59:27 +0000 (11:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Dec 2025 08:43:11 +0000 (09:43 +0100)
commit64c1fbe75951080920c174a875e0850b14f28d09
tree7605a576424395e674c7e4715d233b34b2cc7ce5
parent2d77f822273ae38d44f46b2d325750239fc71641
staging: greybus: arche-platform: fix memleak on probe failure

Make sure to depopulate the child devices in case of late probe
failures to avoid leaking the corresponding resources.

Fixes: fd60ac585607 ("greybus: arche-platform: Fix boot, poweroff and fw_flashing seq with APBs")
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20251219105928.23329-3-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/arche-platform.c