commit | 8007199fe372a7de7a3bc4dc0dca364f2129923a | [log] [tgz] |
---|---|---|
author | Pan Bian <bianpan2016@163.com> | Thu Jan 21 06:57:38 2021 -0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sat Feb 13 13:55:05 2021 +0100 |
tree | 6bb34cad744beb6c3b5b3fadd41ddb5e88f6a2d6 | |
parent | 439ac48a33c5d2bc0103b1f6a867d64ce0f54868 [diff] |
chtls: Fix potential resource leak [ Upstream commit b6011966ac6f402847eb5326beee8da3a80405c7 ] The dst entry should be released if no neighbour is found. Goto label free_dst to fix the issue. Besides, the check of ndev against NULL is redundant. Signed-off-by: Pan Bian <bianpan2016@163.com> Link: https://lore.kernel.org/r/20210121145738.51091-1-bianpan2016@163.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>