netdev: bfin_mac: check for mii_bus platform data
authorSonic Zhang <sonic.zhang@analog.com>
Mon, 10 May 2010 05:39:14 +0000 (05:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 May 2010 00:21:01 +0000 (17:21 -0700)
commit0e995cd3d3c78377a0bc7d38236fc50e5438fabb
tree5525fe8194257fb9a2d47d7b8d3bf4b4e80131c6
parent2bfa0f0c9a37460ee69128da411f6d310c1c983d
netdev: bfin_mac: check for mii_bus platform data

If the platform data for the mii_bus is missing, gracefully error out
rather than deference NULL pointers.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bfin_mac.c