]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: fix NULL pointer deref in startup processing
authorJay Vosburgh <fubar@us.ibm.com>
Wed, 30 Jan 2008 02:07:45 +0000 (18:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Feb 2008 12:28:12 +0000 (04:28 -0800)
commit18ce818a1f5f7b5637de2252a5ab8f9e5dede8f5
tree5eb58e95faa8cfc04a0d81993dcd99b5ecd93a98
parent887de4ee0d4b5214826ff04a3546c30bfa0fc6fa
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