Commit 2378db68 authored by Amir Noam's avatar Amir Noam Committed by Stephen Hemminger

[PATCH] [bonding 2.6] Add missing free_netdev()

parent df31c91c
......@@ -3814,7 +3814,7 @@ static void bond_free_all(void)
unregister_netdev(dev);
bond_deinit(dev);
kfree(dev);
free_netdev(dev);
}
}
......@@ -4220,7 +4220,7 @@ static int __init bonding_init(void)
err = dev_alloc_name(dev, "bond%d");
if (err < 0) {
kfree(dev);
free_netdev(dev);
goto out_err;
}
......@@ -4230,7 +4230,7 @@ static int __init bonding_init(void)
*/
err = bond_init(dev);
if (err < 0) {
kfree(dev);
free_netdev(dev);
goto out_err;
}
......@@ -4239,7 +4239,7 @@ static int __init bonding_init(void)
err = register_netdevice(dev);
if (err < 0) {
bond_deinit(dev);
kfree(dev);
free_netdev(dev);
goto out_err;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment