commit | a35342d0f8b348fad38e6250f9b646b99aa210c7 | [log] [tgz] |
---|---|---|
author | Sidong Yang <realwakka@gmail.com> | Tue Apr 02 12:14:31 2019 +0000 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Apr 02 19:58:04 2019 +0200 |
tree | 6f5161d646722d99e725a34e1519ea4f2608c05c | |
parent | e7c3d05459673d21f62a3fd82fa3a1ee6ef8de55 [diff] |
staging: pi433: Return thread immediately when kthread_should_stop() call. When kthread_stop() called by removing module, running thread should return immediately. Otherwise, It is very dangerous that thread may access any released data like struct pi433_device. Signed-off-by: Sidong Yang <realwakka@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>