Re: [PATCH] net: pasemi: fix an use-after-free in pasemi_mac_phy_init()

From: David Miller
Date: Mon Jul 08 2019 - 19:33:28 EST


From: Wen Yang <wen.yang99@xxxxxxxxxx>
Date: Sat, 6 Jul 2019 12:23:41 +0800

> The phy_dn variable is still being used in of_phy_connect() after the
> of_node_put() call, which may result in use-after-free.
>
> Fixes: 1dd2d06c0459 ("net: Rework pasemi_mac driver to use of_mdio infrastructure")
> Signed-off-by: Wen Yang <wen.yang99@xxxxxxxxxx>

Applied.