aboutsummaryrefslogtreecommitdiffstats
path: root/net/bridge/br_if.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bridge/br_if.c')
-rw-r--r--net/bridge/br_if.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c
index 77a981a1ee52..bff0f5bb12be 100644
--- a/net/bridge/br_if.c
+++ b/net/bridge/br_if.c
@@ -280,8 +280,10 @@ int br_add_bridge(const char *name)
280 } 280 }
281 281
282 ret = register_netdevice(dev); 282 ret = register_netdevice(dev);
283 if (ret) 283 if (ret) {
284 free_netdev(dev);
284 goto out; 285 goto out;
286 }
285 287
286 ret = br_sysfs_addbr(dev); 288 ret = br_sysfs_addbr(dev);
287 if (ret) 289 if (ret)