Re: [PATCH net] net: vlan: avoid leaks on register_vlan_dev() failures

2021-01-05 Thread David Miller
From: Jakub Kicinski Date: Wed, 30 Dec 2020 19:40:27 -0800 > 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 NET

[PATCH net] net: vlan: avoid leaks on register_vlan_dev() failures

2020-12-30 Thread Jakub Kicinski
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