rtl8192eu: Fix code for kernel 5.17 API change

Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
This commit is contained in:
heitbaum
2022-02-10 07:19:24 +00:00
parent 744bbe5297
commit 5fb30bc593
5 changed files with 52 additions and 0 deletions

View File

@@ -1355,7 +1355,11 @@ exit:
pmptx->pallocated_buf = NULL;
pmptx->stop = 1;
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0)
thread_exit(NULL);
#else
kthread_thread_exit(NULL);
#endif
return 0;
}