]> git.ipfire.org Git - thirdparty/linux.git/commit
slimbus: core: fix OF node leak on registration failure
authorJohan Hovold <johan@kernel.org>
Wed, 26 Nov 2025 14:53:24 +0000 (15:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Jan 2026 15:43:04 +0000 (16:43 +0100)
commit0b52edaeb5c2ae9d9d25476554671014d2a1057b
tree40ae2772aaa5b2a182f184630426b8bcbc3cf14b
parentaa3f64a98b23c524ce768661779d7f640f59c4da
slimbus: core: fix OF node leak on registration failure

Make sure to drop the OF node reference taken when initialising and
registering the slimbus device also on registration failure by releasing
it in the destructor as expected.

Fixes: 7588a511bdb4 ("slimbus: core: add support to device tree helper")
Fixes: 01360857486c ("slimbus: core: Fix mismatch in of_node_get/put")
Cc: Saravana Kannan <saravanak@google.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20251126145329.5022-2-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/slimbus/core.c