mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-07-08 18:13:59 +02:00
9591f32a63
[ Upstream commit55b7ab1178] VLAN checks for NETREG_UNINITIALIZED to distinguish between registration failure and unregistration in progress. Since commitcb626bf566("net-sysfs: Fix reference count leak") registration failure may, however, result in NETREG_UNREGISTERED as well as NETREG_UNINITIALIZED. This fix is similer tocebb69754f("rtnetlink: Fix memory(net_device) leak when ->newlink fails") Fixes:cb626bf566("net-sysfs: Fix reference count leak") Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>