commit | b8c19eb16a7e6df57d0f6d67e42ce026e5d5930b | [log] [tgz] |
---|---|---|
author | Grant Likely <grant.likely@secretlab.ca> | Sat Mar 22 14:20:29 2008 +1100 |
committer | Paul Mackerras <paulus@samba.org> | Mon Mar 24 17:55:48 2008 +1100 |
tree | 5a8fd8fef3283cafbbe1419ca296eaa293d07afa | |
parent | 1428a9fa586cb80acf98289f797f58b8bd662598 [diff] |
[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 <grant.likely@secretlab.ca> Signed-off-by: Paul Mackerras <paulus@samba.org>