mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
prevent kernel panic at suspend/resume.
confirmed by: sanpei, joe PR: kern/15742
This commit is contained in:
parent
e8c295abe6
commit
9d786e6627
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=55344
@ -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…
Reference in New Issue
Block a user