aboutsummaryrefslogtreecommitdiff
path: root/drivers/nubus
diff options
context:
space:
mode:
authorKangjie Lu2019-03-12 02:43:18 -0500
committerDavid S. Miller2019-03-12 14:51:02 -0700
commit035a14e71f27eefa50087963b94cbdb3580d08bf (patch)
tree7c8b035774a447e08c8e8699bec9b071383117f9 /drivers/nubus
parentc7cbc3e937b885c9394bf9d0ca21ceb75c2ac262 (diff)
net: sh_eth: fix a missing check of of_get_phy_mode
of_get_phy_mode may fail and return a negative error code; the fix checks the return value of of_get_phy_mode and returns NULL of it fails. Fixes: b356e978e92f ("sh_eth: add device tree support") Signed-off-by: Kangjie Lu <kjlu@umn.edu> Reviewed-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Tested-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/nubus')
0 files changed, 0 insertions, 0 deletions