WSL2-Linux-Kernel/net/decnet
Vadim Fedorenko 3f96d64497 net: decnet: fix netdev refcount leaking on error path
On building the route there is an assumption that the destination
could be local. In this case loopback_dev is used to get the address.
If the address is still cannot be retrieved dn_route_output_slow
returns EADDRNOTAVAIL with loopback_dev reference taken.

Cannot find hash for the fixes tag because this code was introduced
long time ago. I don't think that this bug has ever fired but the
patch is done just to have a consistent code base.

Signed-off-by: Vadim Fedorenko <vfedorenko@novek.ru>
Link: https://lore.kernel.org/r/1611619334-20955-1-git-send-email-vfedorenko@novek.ru
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2021-01-27 17:33:46 -08:00
..
netfilter netfilter: Replace HTTP links with HTTPS ones 2020-07-29 20:09:18 +02:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile decnet: whitespace fixes 2018-07-24 14:10:42 -07:00
README
TODO decnet: whitespace fixes 2018-07-24 14:10:42 -07:00
af_decnet.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
dn_dev.c treewide: rename nla_strlcpy to nla_strscpy. 2020-11-16 08:08:54 -08:00
dn_fib.c netlink: make validation more configurable for future strictness 2019-04-27 17:07:21 -04:00
dn_neigh.c proc: introduce proc_create_net{,_data} 2018-05-16 07:24:30 +02:00
dn_nsp_in.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
dn_nsp_out.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 24 2019-05-21 11:52:39 +02:00
dn_route.c net: decnet: fix netdev refcount leaking on error path 2021-01-27 17:33:46 -08:00
dn_rules.c decnet: whitespace fixes 2018-07-24 14:10:42 -07:00
dn_table.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
dn_timer.c treewide: setup_timer() -> timer_setup() 2017-11-21 15:57:07 -08:00
sysctl_net_decnet.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00

README

                       Linux DECnet Project
                      ======================

The documentation for this kernel subsystem is available in the
Documentation/networking subdirectory of this distribution and also
on line at http://www.chygwyn.com/DECnet/

Steve Whitehouse <SteveW@ACM.org>