bonding: fix NULL pointer deref in startup processing
commit4fe4763cd8cacd81d892193efb48b99c99c15323
authorJay Vosburgh <fubar@us.ibm.com>
Wed, 30 Jan 2008 02:07:45 +0000 (29 18:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Feb 2008 12:28:12 +0000 (3 04:28 -0800)
tree5eb58e95faa8cfc04a0d81993dcd99b5ecd93a98
parent80ee5ad23150f1f3fe8d35728e860850ccea44da
bonding: fix NULL pointer deref in startup processing

Fix the "are we creating a duplicate" check to not compare
the name if the name is NULL (meaning that the system should select
a name).  Bug reported by Benny Amorsen <benny+usenet@amorsen.dk>.

Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c