mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
mmi_sigprint: Fix CFI check failure
Kernel changes the signal callback function parameter
from "sigifno" to "kernel_siginfo" on kernel-5.4
change:
ae7795bc61 signal: Distinguish between kernel_siginfo and siginfo
Change-Id: If120a520bc949b354855f804fcfb3fca97224f47
Reviewed-on: https://gerrit.mot.com/1828677
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
parent
54c7234138
commit
e5d5b0953c
1 changed files with 6 additions and 0 deletions
|
|
@ -23,6 +23,7 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/pid.h>
|
||||
#include <linux/kprobes.h>
|
||||
#include <linux/version.h>
|
||||
|
||||
#include <linux/signal.h>
|
||||
#include <linux/platform_device.h>
|
||||
|
|
@ -101,8 +102,13 @@ static void probe_signal_deliver(void *ignore, int sig, struct siginfo *info,
|
|||
}
|
||||
*/
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,4,0)
|
||||
static void probe_death_signal(void *ignore, int sig, struct siginfo *info,
|
||||
struct task_struct *task, int _group, int result)
|
||||
#else
|
||||
static void probe_death_signal(void *ignore, int sig, struct kernel_siginfo *info,
|
||||
struct task_struct *task, int _group, int result)
|
||||
#endif
|
||||
{
|
||||
struct signal_struct *signal = task->signal;
|
||||
unsigned int state;
|
||||
|
|
|
|||
Loading…
Reference in a new issue