]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nfc: llcp: simplify llcp_sock_connect() error paths
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Wed, 2 Mar 2022 19:25:19 +0000 (20:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jul 2023 06:37:11 +0000 (08:37 +0200)
commitedc5d8776a3280fce7e659a0658a8092197e41a2
tree647c48f08fce23612b27a5737e882cd8f3baadd7
parent9c9662e2512b5e4ee7b03108802c5222e0fa77a4
nfc: llcp: simplify llcp_sock_connect() error paths

[ Upstream commit ec10fd154d934cc4195da3cbd017a12817b41d51 ]

The llcp_sock_connect() error paths were using a mixed way of central
exit (goto) and cleanup

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: 6709d4b7bc2e ("net: nfc: Fix use-after-free caused by nfc_llcp_find_local")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/nfc/llcp_sock.c