diff options
author | 2022-05-06 16:48:51 +0800 | |
---|---|---|
committer | 2022-05-10 15:35:25 +0200 | |
commit | 0668e8ccd33122a350629f6583c880b62b40ab5d (patch) | |
tree | 86d265a0ad03f9d7cbaf66898e9f0f0031948a57 /scripts/generate_rust_analyzer.py | |
parent | hte: Remove unused including <linux/version.h> (diff) | |
download | wireguard-linux-0668e8ccd33122a350629f6583c880b62b40ab5d.tar.xz wireguard-linux-0668e8ccd33122a350629f6583c880b62b40ab5d.zip |
hte: Fix possible use-after-free in tegra_hte_test_remove()
del_timer() does not wait until the timer handler finishing.
This means that the timer handler may still be running after
the driver's remove function has finished, which would result
in a use-after-free.
Fix it by calling del_timer_sync(), which makes sure the timer
handler has finished.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Dipen Patel <dipenp@nvidia.com>
Acked-by: Dipen Patel <dipenp@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions