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

2019-07-08 Thread David Miller
From: Wen Yang 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

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

2019-07-05 Thread Wen Yang
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 Cc: "David S. Miller" Cc: Thomas Gleixner Cc: Luis