# Re: \[PATCH 19/20\] exit/rtl8712: Replace the macro thread\_exit with a simple return 0

- From: Kees Cook \<hidden\>
- Date: 2021-10-21 16:37:31 
- List: linux-arch
- Page: https://ratatoskr.run/linux-arch/2021/10/1549912
- Thread: https://ratatoskr.run/linux-arch/2021/10/1548606/t.md

```text
On Wed, Oct 20, 2021 at 12:44:05PM -0500, Eric W. Biederman wrote:
> The macro thread_exit is called is at the end of a function started
> with kthread_run.  The code in kthread_run has arranged things so a
> kernel thread can just return and do_exit will be called.
> 
> So just have the cmd_thread return instead of calling complete_and_exit.
> 
> Signed-off-by: "Eric W. Biederman" <redacted>

Reviewed-by: Kees Cook <redacted>

-- 
Kees Cook
```
