gaming_control: Remove task kill check

In case task_struct was locked out, we can't check its cmdline
If we do, we'll get a soft lockup

Background and top-app check is enough

Signed-off-by: Diep Quynh <remilia.1505@gmail.com>
This commit is contained in:
Diep Quynh 2019-03-19 12:40:20 +07:00 committed by Mustafa Gökmen
parent 609163c324
commit 75f9b626ee
No known key found for this signature in database
GPG key ID: 3204D8100CFF21ED
3 changed files with 1 additions and 13 deletions

View file

@ -40,9 +40,6 @@
#define CREATE_TRACE_POINTS
#include <trace/events/signal.h>
/* Gaming control */
#include <linux/gaming_control.h>
#include <asm/param.h>
#include <asm/uaccess.h>
#include <asm/unistd.h>
@ -1208,9 +1205,6 @@ int do_send_sig_info(int sig, struct siginfo *info, struct task_struct *p,
unsigned long flags;
int ret = -ESRCH;
if ((sig == SIGKILL || sig == SIGTERM || sig == SIGABRT || sig == SIGQUIT))
game_option(p, GAME_KILLED);
if (lock_task_sighand(p, &flags)) {
ret = send_signal(sig, info, p, group);
unlock_task_sighand(p, &flags);