summaryrefslogtreecommitdiff
path: root/include/linux/stackprotector.h
diff options
context:
space:
mode:
authorYuho Choi <dbgh9129@gmail.com>2026-06-30 17:40:43 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-07-10 14:44:24 +0200
commit8dfea56f350b3dc826f35711802ad6ae8fae0748 (patch)
tree437b2e9cb3dd8d05ab88a09f2393eb72f2edd28f /include/linux/stackprotector.h
parent4f643bef0984b504adfb4d979ba5068e4d63485a (diff)
serial: ma35d1: Fix OF node reference leaks in console init
ma35d1serial_console_init_port() stores matching UART device nodes in ma35d1serial_uart_nodes[] with an extra of_node_get() so that console setup can later read the "reg" property. However, the stored references are never released after console setup has finished using them. Drop the stored node reference after ma35d1serial_console_setup() reads the "reg" property, and clear the array slot to avoid leaving a stale pointer behind. Also release the iterator reference before breaking out of for_each_matching_node(), since the normal iterator advance will not run in that path. Fixes: 930cbf92db01 ("tty: serial: Add Nuvoton ma35d1 serial driver support") Signed-off-by: Yuho Choi <dbgh9129@gmail.com> Link: https://patch.msgid.link/20260630214043.1887351-1-dbgh9129@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions