aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/rtnetlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/rtnetlink.c')
-rw-r--r--net/core/rtnetlink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index 0b2972c59b97..242084edb658 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -1867,10 +1867,10 @@ replay:
1867 else 1867 else
1868 err = register_netdevice(dev); 1868 err = register_netdevice(dev);
1869 1869
1870 if (err < 0 && !IS_ERR(dev)) 1870 if (err < 0) {
1871 free_netdev(dev); 1871 free_netdev(dev);
1872 if (err < 0)
1873 goto out; 1872 goto out;
1873 }
1874 1874
1875 err = rtnl_configure_link(dev, ifm); 1875 err = rtnl_configure_link(dev, ifm);
1876 if (err < 0) 1876 if (err < 0)