Re: [PATCH v3] net: sh_eth: fix a missing check of of_get_phy_mode

From: David Miller
Date: Tue Mar 12 2019 - 17:51:34 EST


From: Kangjie Lu <kjlu@xxxxxxx>
Date: Tue, 12 Mar 2019 02:43:18 -0500

> 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.
>
> Signed-off-by: Kangjie Lu <kjlu@xxxxxxx>

Applied with Fixes: tag added.