]> git.ipfire.org Git - thirdparty/linux.git/commit
serial: core: fix OF node leak
authorJohan Hovold <johan@kernel.org>
Tue, 8 Jul 2025 08:58:17 +0000 (10:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2025 11:41:48 +0000 (13:41 +0200)
commit273cc3406c8d4e830ed45967c70d08d20ca1380e
tree77a22707fb4c12d78010b2e701ad19ffd522ef76
parentd0b3b7b22dfa1f4b515fd3a295b3fd958f9e81af
serial: core: fix OF node leak

Make sure to drop the OF node reference taken when initialising the
control and port devices when the devices are later released.

Fixes: d36f0e9a0002 ("serial: core: restore of_node information in sysfs")
Cc: Aidan Stewart <astewart@tektelic.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20250708085817.16070-1-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_base_bus.c