Skip to content
Snippets Groups Projects
user avatar
Kangjie Lu authored
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: default avatarKangjie Lu <kjlu@umn.edu>
Acked-by: default avatarMaxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
4ec850e5
History
Name Last commit Last update