commit | a5c70e57c4c1603cec04447cfeebda4b16cfa880 | [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:52:55 2021 +0100 |
tree | cdba5b5eb73565bc52fff96c9489a5acd411a292 | |
parent | 8b6d5013cd707190619f341a8122f2d9cd8f9bfa [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>