aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorYang Yingliang <[email protected]>2021-04-07 17:27:16 +0800
committerGreg Kroah-Hartman <[email protected]>2021-04-16 07:27:19 +0200
commite1723d8b87b73ab363256e7ca3af3ddb75855680 (patch)
treee312c2e70f1447f1bc1f82f7d081eee5df08a588 /tools/perf/scripts/python/exported-sql-viewer.py
parent41c9f7fb64f8423750b0ccd916a8a3cf4f5c99c1 (diff)
phy: phy-twl4030-usb: Fix possible use-after-free in twl4030_usb_remove()
This driver's remove path calls cancel_delayed_work(). However, that function does not wait until the work function finishes. This means that the callback function may still be running after the driver's remove function has finished, which would result in a use-after-free. Fix by calling cancel_delayed_work_sync(), which ensures that the work is properly cancelled, no longer running, and unable to re-schedule itself. Reported-by: Hulk Robot <[email protected]> Signed-off-by: Yang Yingliang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions