aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/bonding')
-rw-r--r--drivers/net/bonding/bond_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index 1787e3c86573..430c02267d7e 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -4946,6 +4946,8 @@ int bond_create(struct net *net, const char *name)
4946 } 4946 }
4947 4947
4948 res = register_netdevice(bond_dev); 4948 res = register_netdevice(bond_dev);
4949 if (res < 0)
4950 goto out_netdev;
4949 4951
4950out: 4952out:
4951 rtnl_unlock(); 4953 rtnl_unlock();