mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Don't check curproc->p_comm for NULL as it is an array allocated as part of
struct proc. Found with: Coverity Prevent(tm) CID: 2096
This commit is contained in:
parent
bdcfa9589b
commit
5aabce7698
1 changed files with 1 additions and 3 deletions
|
|
@ -854,9 +854,7 @@ trap_fatal(frame, eva)
|
|||
printf("IOPL = %d\n", (frame->tf_eflags & PSL_IOPL) >> 12);
|
||||
printf("current process = ");
|
||||
if (curproc) {
|
||||
printf("%lu (%s)\n",
|
||||
(u_long)curproc->p_pid, curproc->p_comm ?
|
||||
curproc->p_comm : "");
|
||||
printf("%lu (%s)\n", (u_long)curproc->p_pid, curproc->p_comm);
|
||||
} else {
|
||||
printf("Idle\n");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue