!183 fix: dereference NULL point bug fix
Merge pull request !183 from MGY917/signal_bug_fix
This commit is contained in:
commit
806ce4eb26
|
@ -270,8 +270,12 @@ int OsSigProcessSend(LosProcessCB *spcb, siginfo_t *sigInfo)
|
|||
.receivedTcb = NULL
|
||||
};
|
||||
|
||||
if (info.sigInfo == NULL){
|
||||
return -EFAULT;
|
||||
}
|
||||
|
||||
/* visit all taskcb and dispatch signal */
|
||||
if ((info.sigInfo != NULL) && (info.sigInfo->si_signo == SIGKILL)) {
|
||||
if (info.sigInfo->si_signo == SIGKILL) {
|
||||
(void)OsSigProcessForeachChild(spcb, SigProcessKillSigHandler, &info);
|
||||
OsSigAddSet(&spcb->sigShare, info.sigInfo->si_signo);
|
||||
OsWaitSignalToWakeProcess(spcb);
|
||||
|
|
Loading…
Reference in New Issue