| To: | bonding-devel@xxxxxxxxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 9/10] [bonding 2.6] Add missing free_netdev() |
| From: | Amir Noam <amir.noam@xxxxxxxxx> |
| Date: | Thu, 11 Sep 2003 17:44:54 +0300 |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | KMail/1.4.3 |
diff -Nuarp a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
--- a/drivers/net/bonding/bond_main.c Thu Sep 11 16:48:40 2003
+++ b/drivers/net/bonding/bond_main.c Thu Sep 11 16:48:41 2003
@@ -3788,7 +3788,7 @@ static void bond_free_all(void)
unregister_netdev(dev);
bond_deinit(dev);
- kfree(dev);
+ free_netdev(dev);
}
}
@@ -4194,7 +4194,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;
}
@@ -4204,7 +4204,7 @@ static int __init bonding_init(void)
*/
err = bond_init(dev);
if (err < 0) {
- kfree(dev);
+ free_netdev(dev);
goto out_err;
}
@@ -4213,7 +4213,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;
}
}
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 7/10] [bonding 2.6] Consolidate /proc code, add CHANGENAME handler, Amir Noam |
|---|---|
| Next by Date: | [PATCH 10/10] [bonding 2.6] Fix ipx_hdr compile error, Amir Noam |
| Previous by Thread: | [PATCH 7/10] [bonding 2.6] Consolidate /proc code, add CHANGENAME handler, Amir Noam |
| Next by Thread: | [PATCH 10/10] [bonding 2.6] Fix ipx_hdr compile error, Amir Noam |
| Indexes: | [Date] [Thread] [Top] [All Lists] |