diff options
| author | Kangjie Lu <[email protected]> | 2019-03-12 07:43:18 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-03-12 21:51:02 +0000 |
| commit | 035a14e71f27eefa50087963b94cbdb3580d08bf (patch) | |
| tree | 7c8b035774a447e08c8e8699bec9b071383117f9 /drivers/fpga/fpga-mgr.c | |
| parent | net: 8390: fix potential NULL pointer dereferences (diff) | |
| download | kernel-035a14e71f27eefa50087963b94cbdb3580d08bf.tar.gz kernel-035a14e71f27eefa50087963b94cbdb3580d08bf.zip | |
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 <[email protected]>
Reviewed-by: Sergei Shtylyov <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Tested-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions
