Yangxi Xiang 31c779f293 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>
2022-06-27 16:41:13 +02:00
..
2022-05-09 12:48:45 +01:00
2022-02-02 07:49:59 -07:00
2022-03-18 14:30:12 +01:00
2021-07-21 11:53:42 +02:00
2021-12-30 13:54:42 +01:00
2022-06-03 11:48:47 -07:00
2021-06-15 17:14:36 +02:00
2021-06-15 17:14:36 +02:00