net: mv643xx_eth: potential NULL dereference in probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 13 Nov 2013 07:52:47 +0000 (10:52 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Nov 2013 08:11:36 +0000 (03:11 -0500)
commit6115c11fe1a5a636ac99fc823b00df4ff3c0674e
tree95af867499c2ac0afda52bda61d19a572bf10fd5
parent64b8c8e573f614853c6cb828b2853da8e285377f
net: mv643xx_eth: potential NULL dereference in probe()

We assume that "mp->phy" can be NULL a couple lines before the
dereference.

Fixes: 1cce16d37d0f ('net: mv643xx_eth: Add missing phy_addr_set in DT mode')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mv643xx_eth.c