Re: [PATCH net-next 1/2] net: mdio: of: fix potential NULL pointer derefernce
From: Richard Cochran
Date: Fri Jan 31 2020 - 00:17:40 EST
On Thu, Jan 30, 2020 at 06:44:50PM +0100, Michael Walle wrote:
> of_find_mii_timestamper() returns NULL if no timestamper is found.
> Therefore, guard the unregister_mii_timestamper() calls.
>
> Fixes: 1dca22b18421 ("net: mdio: of: Register discovered MII time stampers.")
> Signed-off-by: Michael Walle <michael@xxxxxxxx>
Good catch.
Acked-by: Richard Cochran <richardcochran@xxxxxxxxx>