From: Jakub Kicinski <k...@kernel.org>
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 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 <k...@kernel.org>
> ---
> Found by code inspection and compile-tested only.

This entire area is inconsistent, and confusing at best.

Applied and queued up for -stable, thanks.

Reply via email to