bond: Get the rtnl_link_ops support correct
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 29 Oct 2009 23:58:54 +0000 (23:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Oct 2009 19:41:22 +0000 (12:41 -0700)
commit6639104bd826e0b1388c69a6b7564fffc636c8a8
treea96951c923ca5c045e3e581849b3a9373fddac3e
parentec87fd3b4e111e8bc367d247a963e27e5b86df26
bond: Get the rtnl_link_ops support correct

- Don't call rtnl_link_unregister if rtnl_link_register fails
- Set .priv_size so we aren't stomping on uninitialized memory
  when we use netdev_priv, on bond devices created with
  ip link add type bond.

Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c