]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: fixed_phy: fix use-after-free when checking link GPIO
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 3 Jan 2020 01:03:19 +0000 (17:03 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Jan 2020 22:27:01 +0000 (14:27 -0800)
commit643ddeb7204cedd22a55897bacf42249e888d9b3
treeb0bf161b09b1c1713dac09e05a9a0e66bc1c2457
parent61fdbf67ad4d070f1cb090c6c4010b0f71cb56f2
net: phy: fixed_phy: fix use-after-free when checking link GPIO

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@davemloft.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/fixed_phy.c