summaryrefslogtreecommitdiffstats
path: root/drivers/staging/r8188eu/include/osdep_service.h
diff options
context:
space:
mode:
authorMartin Kaiser <martin@kaiser.cx>2021-10-16 20:13:43 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-10-18 16:44:41 +0200
commitbef56d47b9151d6defe7e2d220bfa7fa7253082a (patch)
treea5a35d85f095e83c4d4414d7f539407cd6da5a75 /drivers/staging/r8188eu/include/osdep_service.h
parentd508cee5d03c39b1ddf5e0e94764210e1b1b9318 (diff)
downloadlinux-bef56d47b9151d6defe7e2d220bfa7fa7253082a.tar.bz2
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>
Diffstat (limited to 'drivers/staging/r8188eu/include/osdep_service.h')
-rw-r--r--drivers/staging/r8188eu/include/osdep_service.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/staging/r8188eu/include/osdep_service.h b/drivers/staging/r8188eu/include/osdep_service.h
index ee8a64bb3126..886a1b6f30b4 100644
--- a/drivers/staging/r8188eu/include/osdep_service.h
+++ b/drivers/staging/r8188eu/include/osdep_service.h
@@ -160,11 +160,6 @@ static inline unsigned char _cancel_timer_ex(struct timer_list *ptimer)
return del_timer_sync(ptimer);
}
-static __inline void thread_enter(char *name)
-{
- allow_signal(SIGTERM);
-}
-
static inline void flush_signals_thread(void)
{
if (signal_pending (current))