diff options
| author | Mark Johnston <markj@FreeBSD.org> | 2015-11-08 01:38:56 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2015-11-08 01:38:56 +0000 |
| commit | d28713378ac0fe8f265710584829ff7fd169145d (patch) | |
| tree | bb49368f6a2c64f93c8c74bd02d3172c0b4db5d1 /sys/fs/procfs | |
| parent | 7e78597f04cbdc5fd370895f657278c25c993771 (diff) | |
Notes
Diffstat (limited to 'sys/fs/procfs')
| -rw-r--r-- | sys/fs/procfs/procfs_dbregs.c | 2 | ||||
| -rw-r--r-- | sys/fs/procfs/procfs_fpregs.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/procfs/procfs_dbregs.c b/sys/fs/procfs/procfs_dbregs.c index de5dc769e4675..1598443bce902 100644 --- a/sys/fs/procfs/procfs_dbregs.c +++ b/sys/fs/procfs/procfs_dbregs.c @@ -98,7 +98,7 @@ procfs_doprocdbregs(PFS_FILL_ARGS) return (0); PROC_LOCK(p); - KASSERT(p->p_lock > 0, ("proc not held")); + PROC_ASSERT_HELD(p); if (p_candebug(td, p) != 0) { PROC_UNLOCK(p); return (EPERM); diff --git a/sys/fs/procfs/procfs_fpregs.c b/sys/fs/procfs/procfs_fpregs.c index c89c8e7e6017c..d2f01535eb577 100644 --- a/sys/fs/procfs/procfs_fpregs.c +++ b/sys/fs/procfs/procfs_fpregs.c @@ -92,7 +92,7 @@ procfs_doprocfpregs(PFS_FILL_ARGS) return (0); PROC_LOCK(p); - KASSERT(p->p_lock > 0, ("proc not held")); + PROC_ASSERT_HELD(p); if (p_candebug(td, p)) { PROC_UNLOCK(p); return (EPERM); |
