summaryrefslogtreecommitdiffstats
path: root/fs/kernfs/kernfs-internal.h
diff options
context:
space:
mode:
authorFrancesco Ruggeri2016-04-24 00:03:32 +0200
committerDavid S. Miller2016-04-26 21:17:18 +0200
commit308379607548524b8d86dbf20134681024935e0b (patch)
treee755097f21c7b18c56e6a30542793e2b0cd9298b /fs/kernfs/kernfs-internal.h
parentMerge branch 'qed-bandwidth-config' (diff)
downloadkernel-qcow2-linux-308379607548524b8d86dbf20134681024935e0b.tar.gz
kernel-qcow2-linux-308379607548524b8d86dbf20134681024935e0b.tar.xz
kernel-qcow2-linux-308379607548524b8d86dbf20134681024935e0b.zip
macvlan: fix failure during registration v3
If macvlan_common_newlink fails in register_netdevice after macvlan_init then it decrements port->count twice, first in macvlan_uninit (from register_netdevice or rollback_registered) and then again in macvlan_common_newlink. A similar problem may exist in the ipvlan driver. This patch consolidates modifications to port->count into macvlan_init and macvlan_uninit (thanks to Eric Biederman for suggesting this approach). v3: remove macvtap specific bits. Signed-off-by: Francesco Ruggeri <fruggeri@arista.com> Acked-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/kernfs/kernfs-internal.h')
0 files changed, 0 insertions, 0 deletions