staging: r8188eu: don't accept SIGTERM for cmd thread
authorMartin Kaiser <martin@kaiser.cx>
Sat, 16 Oct 2021 18:13:43 +0000 (20:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Oct 2021 14:44:41 +0000 (16:44 +0200)
commitbef56d47b9151d6defe7e2d220bfa7fa7253082a
treea5a35d85f095e83c4d4414d7f539407cd6da5a75
parentd508cee5d03c39b1ddf5e0e94764210e1b1b9318
staging: r8188eu: don't accept SIGTERM for cmd thread

At the moment, our command thread can be killed by user space.

[root@host ]# kill `pidof RTW_CMD_THREAD`

The driver will then stop working until the module is unloaded
and reloaded.

Don't process SIGTERM in the command thread. Other drivers that have a
command thread don't process SIGTERM either.

Acked-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20211016181343.3686-4-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_cmd.c
drivers/staging/r8188eu/include/osdep_service.h