summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2025-09-11 14:09:47 +0300
committerJakub Kicinski <kuba@kernel.org>2025-09-14 22:01:00 +0300
commit454bbe5913b2c56a3b4c5bf85138b5382ba8b8e6 (patch)
tree5045392fbea495a38d9c3f8258bac71350d28c36 /tools/perf/scripts/python/stackcollapse.py
parent99a8789afd1251f3b712f412661770e702ec7dbd (diff)
downloadlinux-454bbe5913b2c56a3b4c5bf85138b5382ba8b8e6.tar.xz
net: stmmac: fix PTP error cleanup in __stmmac_open()
The cleanup function for stmmac_setup_ptp() is stmmac_release_ptp() which entirely undoes the effects of stmmac_setup_ptp() by unregistering the PTP device and then stopping the PTP clock, whereas stmmac_hw_teardown() will only stop the PTP clock while leaving the PTP device registered. This can lead to a kernel oops - if __stmmac_open() fails after registering the PTP clock, the PTP device will remain registered, and if the module is removed, subsequent PTP device accesses will lead to a kernel oops. Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions