mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170021
@ -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 New Issue
Block a user