Revision ba69fd9101f20a6d05a96ab743341d4e7b1a2178 authored by Christophe JAILLET on 18 October 2021, 19:59:00 UTC, committed by Jakub Kicinski on 19 October 2021, 22:41:16 UTC
If we return before the end of the 'for_each_child_of_node()' iterator, the
reference taken on 'port' must be released.

Add the missing 'of_node_put()' calls.

Fixes: 83c0afaec7b7 ("net: dsa: Add new binding implementation")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/15d5310d1d55ad51c1af80775865306d92432e03.1634587046.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 04ee275
History
File Mode Size
Kconfig -rw-r--r-- 1.5 KB
Makefile -rw-r--r-- 579 bytes
af_rxrpc.c -rw-r--r-- 25.2 KB
ar-internal.h -rw-r--r-- 42.2 KB
call_accept.c -rw-r--r-- 14.0 KB
call_event.c -rw-r--r-- 12.0 KB
call_object.c -rw-r--r-- 18.4 KB
conn_client.c -rw-r--r-- 28.7 KB
conn_event.c -rw-r--r-- 12.4 KB
conn_object.c -rw-r--r-- 12.6 KB
conn_service.c -rw-r--r-- 6.0 KB
input.c -rw-r--r-- 38.0 KB
insecure.c -rw-r--r-- 2.4 KB
key.c -rw-r--r-- 16.3 KB
local_event.c -rw-r--r-- 2.7 KB
local_object.c -rw-r--r-- 11.1 KB
misc.c -rw-r--r-- 2.3 KB
net_ns.c -rw-r--r-- 3.6 KB
output.c -rw-r--r-- 17.7 KB
peer_event.c -rw-r--r-- 10.1 KB
peer_object.c -rw-r--r-- 12.5 KB
proc.c -rw-r--r-- 8.1 KB
protocol.h -rw-r--r-- 7.1 KB
recvmsg.c -rw-r--r-- 20.5 KB
rtt.c -rw-r--r-- 5.8 KB
rxkad.c -rw-r--r-- 34.9 KB
security.c -rw-r--r-- 4.0 KB
sendmsg.c -rw-r--r-- 21.6 KB
server_key.c -rw-r--r-- 3.4 KB
skbuff.c -rw-r--r-- 2.6 KB
sysctl.c -rw-r--r-- 3.6 KB
utils.c -rw-r--r-- 1.2 KB

back to top