]> git.karo-electronics.de Git - karo-tx-linux.git/commit
bonding: fix NULL pointer deref in startup processing
authorJay Vosburgh <fubar@us.ibm.com>
Fri, 15 Feb 2008 18:00:41 +0000 (10:00 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 26 Feb 2008 00:19:01 +0000 (16:19 -0800)
commitf7e1b66a194e38f9fa41f8144aa34b782fb4f53a
tree96029cdaef4dffaae551f2e92fc2b077b97fe0f5
parenta3b89e6d7396b874b8e7ec25378bb479418ef2d5
bonding: fix NULL pointer deref in startup processing

patch 4fe4763cd8cacd81d892193efb48b99c99c15323 in mainline.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/bonding/bond_main.c