diff options
| author | Kangjie Lu <[email protected]> | 2019-03-12 07:50:40 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-03-12 21:52:00 +0000 |
| commit | 4ec850e5dfec092b26cf3b7d5a6c9e444ea4babd (patch) | |
| tree | 25d09ed2f4437df2ad9d09977884275678e8af7a /drivers/fpga/fpga-mgr.c | |
| parent | net: sh_eth: fix a missing check of of_get_phy_mode (diff) | |
| download | kernel-4ec850e5dfec092b26cf3b7d5a6c9e444ea4babd.tar.gz kernel-4ec850e5dfec092b26cf3b7d5a6c9e444ea4babd.zip | |
net: dwmac-sun8i: 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 -EINVAL of it fails.
Signed-off-by: Kangjie Lu <[email protected]>
Acked-by: Maxime Ripard <[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
