Re: [PATCH] net: dwmac-sun8i: fix a missing check of of_get_phy_mode
From: Maxime Ripard
Date: Tue Mar 12 2019 - 04:07:12 EST
On Tue, Mar 12, 2019 at 02:50:40AM -0500, Kangjie Lu wrote:
> 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 <kjlu@xxxxxxx>
Acked-by: Maxime Ripard <maxime.ripard@xxxxxxxxxxx>
Thanks!
Maxime
--
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Attachment:
signature.asc
Description: PGP signature