kernel debug: priv can be NULL early on
This commit is contained in:
parent
29edcad310
commit
59ff758441
1 changed files with 3 additions and 2 deletions
|
@ -236,8 +236,9 @@ static void
|
|||
print_sigmgr(struct proc *pp)
|
||||
{
|
||||
endpoint_t sig_mgr, bak_sig_mgr;
|
||||
sig_mgr = priv(pp)->s_sig_mgr;
|
||||
bak_sig_mgr = priv(pp)->s_bak_sig_mgr;
|
||||
sig_mgr = priv(pp) ? priv(pp)->s_sig_mgr : NONE;
|
||||
bak_sig_mgr = priv(pp) ? priv(pp)->s_bak_sig_mgr : NONE;
|
||||
if(sig_mgr == NONE) { printf("no sigmgr"); return; }
|
||||
printf("sigmgr ");
|
||||
print_endpoint(sig_mgr);
|
||||
if(bak_sig_mgr != NONE) {
|
||||
|
|
Loading…
Reference in a new issue