From: Sergei Shtylyov Date: Wed, 30 Oct 2013 20:30:19 +0000 (+0300) Subject: sh_eth: check platform data pointer X-Git-Tag: v3.13-rc1~105^2~67 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b4c5cbf42bda976ab70354e7786a0808265d9d5;p=pandora-kernel.git sh_eth: check platform data pointer Check the platform data pointer before dereferencing it and error out of the probe() method if it's NULL. This has additional effect of preventing kernel oops with outdated platform data containing zero PHY address instead (such as on SolutionEngine7710). Signed-off-by: Sergei Shtylyov Acked-by: Simon Horman Signed-off-by: David S. Miller --- Reading git-diff-tree failed