prevent kernel panic at suspend/resume.

confirmed by: sanpei, joe

PR: kern/15742
This commit is contained in:
Yoshinobu Inoue 2000-01-03 17:29:16 +00:00
parent e8c295abe6
commit 9d786e6627

@ -414,7 +414,7 @@ in6_control(so, cmd, data, ifp, p)
int privileged;
privileged = 0;
if (p && !suser(p))
if (p == NULL || !suser(p))
privileged++;
/*