android_kernel_motorola_sm6375/net/8021q
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jakub Kicinski 37e6368a8d net: vlan: avoid leaks on register_vlan_dev() failures
[ Upstream commit 55b7ab1178cbf41f979ff83236d3321ad35ed2ad ]

VLAN checks for NETREG_UNINITIALIZED to distinguish between
registration failure and unregistration in progress.

Since commit cb626bf566eb ("net-sysfs: Fix reference count leak")
registration failure may, however, result in NETREG_UNREGISTERED
as well as NETREG_UNINITIALIZED.

This fix is similer to cebb69754f37 ("rtnetlink: Fix
memory(net_device) leak when ->newlink fails")

Fixes: cb626bf566eb ("net-sysfs: Fix reference count leak")
Signed-off-by: Jakub Kicinski <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2021-01-17 14:05:31 +01:00
..
Kconfig
Makefile
vlan.c
vlan.h
vlan_core.c
vlan_dev.c
vlan_gvrp.c
vlan_mvrp.c
vlan_netlink.c
vlanproc.c
vlanproc.h