diff options
author | Pan Bian <bianpan2016@163.com> | 2021-01-21 06:57:38 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-02-13 13:51:14 +0100 |
commit | 6259963da5adcbbe4992412ccf8375bd380c5c72 (patch) | |
tree | df9c344d9aaad37b2ca3816f893a845d2fd41761 /fs/nfs | |
parent | 1d915c56268fa214c94ef764df8bf31d1bd5f25b (diff) | |
download | linux-stable-6259963da5adcbbe4992412ccf8375bd380c5c72.tar.gz linux-stable-6259963da5adcbbe4992412ccf8375bd380c5c72.tar.bz2 linux-stable-6259963da5adcbbe4992412ccf8375bd380c5c72.zip |
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>
Diffstat (limited to 'fs/nfs')
0 files changed, 0 insertions, 0 deletions