Re: [PATCH v2 2/3] net: phy: fixed_phy: fix use-after-free when checking link GPIO

From: Andrew Lunn
Date: Tue Oct 15 2019 - 08:54:08 EST


On Mon, Oct 14, 2019 at 10:40:21AM -0700, Dmitry Torokhov wrote:
> If we fail to locate GPIO for any reason other than deferral or
> not-found-GPIO, we try to print device tree node info, however if might
> be freed already as we called of_node_put() on it.
>
> Acked-by: David S. Miller <davem@xxxxxxxxxxxxx>
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew