From: Grant Likely Date: Tue, 31 Mar 2009 20:17:03 +0000 (+0000) Subject: net/fec_mpc52xx: Don't dereference phy_device if it is NULL X-Git-Tag: v2.6.30-rc1~246^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9404c82b5ea3237f43732d8afd4d1c0dc8f0f3ed;p=pandora-kernel.git net/fec_mpc52xx: Don't dereference phy_device if it is NULL The FEC Ethernet device isn't always attached to a phy. Be careful not to dereference phy_device if it is NULL. Also eliminates an unnecessary extra function from the ioctl path. Reported-by: Henk Stegeman Signed-off-by: Grant Likely Signed-off-by: David S. Miller --- Reading git-diff-tree failed