]> bbs.cooldavid.org Git - net-next-2.6.git/commit
bonding: fix device leak on error in bond_create()
authorPatrick McHardy <kaber@trash.net>
Sat, 27 Feb 2010 10:52:05 +0000 (02:52 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Feb 2010 10:52:05 +0000 (02:52 -0800)
commit8d6184e4881b423522136aeb3ec1cbd9c35e8813
treefc9c33ee44e199b65d0e619a6ced118f8f0bbec3
parent3729d5021257b283f7fce33d957893162ccb2c9d
bonding: fix device leak on error in bond_create()

When the register_netdevice() call fails, the newly allocated device is
not freed.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c