From: Grant Likely Date: Sat, 22 Mar 2008 03:20:29 +0000 (+1100) Subject: [POWERPC] mpc5200-fec: Fix possible NULL dereference in mdio driver X-Git-Tag: v2.6.25-rc7~23^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8c19eb16a7e6df57d0f6d67e42ce026e5d5930b;p=pandora-kernel.git [POWERPC] mpc5200-fec: Fix possible NULL dereference in mdio driver If the reg property is missing from the phy node (unlikely, but possible), then the kernel will oops with a NULL pointer dereference. This fixes it by checking the pointer first. Signed-off-by: Grant Likely Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed