aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/dmesg.py
diff options
context:
space:
mode:
authorMarek BehĂșn <[email protected]>2022-01-19 17:27:48 +0100
committerJakub Kicinski <[email protected]>2022-01-20 20:17:04 -0800
commitcbda1b16687580d5beee38273f6241ae3725960c (patch)
tree1520342dfc5e821776655ba90c756ec6beb88939 /scripts/gdb/linux/dmesg.py
parent57afdc0aab094b4c811b3fe030b2567812a495f3 (diff)
phylib: fix potential use-after-free
Commit bafbdd527d56 ("phylib: Add device reset GPIO support") added call to phy_device_reset(phydev) after the put_device() call in phy_detach(). The comment before the put_device() call says that the phydev might go away with put_device(). Fix potential use-after-free by calling phy_device_reset() before put_device(). Fixes: bafbdd527d56 ("phylib: Add device reset GPIO support") Signed-off-by: Marek BehĂșn <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/dmesg.py')
0 files changed, 0 insertions, 0 deletions