fix: dereference NULL point bug fix
Change-Id: Ib068696c9280105e209469e875c187d741b704d2
This commit is contained in:
parent
be40fa1381
commit
deaa564a66
|
@ -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