bond_3ad.c avoid possible null deref
authorDan Carpenter <error27@gmail.com>
Wed, 23 Dec 2009 03:27:10 +0000 (03:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Dec 2009 04:24:46 +0000 (20:24 -0800)
commitc99a3d2e04c63a795e13c26d6f2982731e1f1ae0
tree2c0a8e24fe40fc6b4681fb5e3c3db18e0bbd6056
parent1f04493123763f5b8bc6d5de9aed0222345c052c
bond_3ad.c avoid possible null deref

A few lines earlier we assume that best->slave could be either null or non-null so
we should check it here as well.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_3ad.c