prevent kernel panic at suspend/resume.
confirmed by: sanpei, joe PR: kern/15742
This commit is contained in:
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++;
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user