diff options
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/procfs/procfs_map.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/fs/procfs/procfs_map.c b/sys/fs/procfs/procfs_map.c index cae1fc4..3808145 100644 --- a/sys/fs/procfs/procfs_map.c +++ b/sys/fs/procfs/procfs_map.c @@ -80,6 +80,12 @@ procfs_doprocmap(PFS_FILL_ARGS) GIANT_REQUIRED; + PROC_LOCK(p); + error = p_candebug(td, p); + PROC_UNLOCK(p); + if (error) + return (error); + if (uio->uio_rw != UIO_READ) return (EOPNOTSUPP); |