mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 08:52:27 +00:00
When newlink creation fails at device-registration, the port->count
is decremented twice. Francesco Ruggeri ([email protected]) found
this issue in Macvlan and the same exists in IPvlan driver too.
While fixing this issue I noticed another issue of missing unregister
in case of failure, so adding it to the fix which is similar to the
macvlan fix by Francesco in commit 3083796075 ("macvlan: fix failure
during registration v3")
Reported-by: Francesco Ruggeri <[email protected]>
Signed-off-by: Mahesh Bandewar <[email protected]>
CC: Eric Dumazet <[email protected]>
CC: Eric W. Biederman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>