diff options
| author | Sergei Shtylyov <[email protected]> | 2013-10-30 23:30:19 +0300 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2013-11-04 15:49:28 -0500 |
| commit | 3b4c5cbf42bda976ab70354e7786a0808265d9d5 (patch) | |
| tree | ee60ea2b60d9dfb382f509722c6564d51d920958 /tools/perf/scripts/python/sctop.py | |
| parent | 6f9fed0bd2f82bafe1d8ab200916d9bd55b36c66 (diff) | |
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 <[email protected]>
Acked-by: Simon Horman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions