diff options
author | 2022-06-27 20:04:09 +0800 | |
---|---|---|
committer | 2022-06-27 16:41:13 +0200 | |
commit | 31c779f293b343577690c01369a5019ca6ec5de9 (patch) | |
tree | 8943dfbf2c100f2237e9915dd7baef0e4e88b8c4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Revert "devcoredump: remove the useless gfp_t parameter in dev_coredumpv and dev_coredumpm" (diff) | |
download | linux-dev-31c779f293b343577690c01369a5019ca6ec5de9.tar.xz linux-dev-31c779f293b343577690c01369a5019ca6ec5de9.zip |
devtmpfs: fix the dangling pointer of global devtmpfsd thread
When the devtmpfs fails to mount, a dangling pointer still remains in
global. Specifically, the err variable is passed by a pointer to the
devtmpfsd. When the devtmpfsd exits, it sets the error and completes the
setup_done. In this situation, the thread pointer is not set to null.
After the devtmpfsd exited, the devtmpfs can wakes up the destroyed
devtmpfsd thread by wake_up_process if a device change event comes.
Signed-off-by: Yangxi Xiang <xyangxi5@gmail.com>
Link: https://lore.kernel.org/r/20220627120409.11174-1-xyangxi5@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions