diff options
author | green <green@FreeBSD.org> | 2001-11-06 17:00:40 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 2001-11-06 17:00:40 +0000 |
commit | 096e732df4cdb48f76eef80052e5b9abd39209a3 (patch) | |
tree | c51c9d73c7bdfcb85a8db579d86601529bd0f01e /sys/fs | |
parent | df78d8e6b568b1ca8dcb178d94234332700a5df2 (diff) | |
download | FreeBSD-src-096e732df4cdb48f76eef80052e5b9abd39209a3.zip FreeBSD-src-096e732df4cdb48f76eef80052e5b9abd39209a3.tar.gz |
Correctly unlock the target process if /proc/$foo/mem is open()ed by
another process which cannot p_candebug() it. The bug was introduced
in rev. 1.100.
Approved by: des
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/procfs/procfs_vnops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/procfs/procfs_vnops.c b/sys/fs/procfs/procfs_vnops.c index 099e2b9..cd168aa 100644 --- a/sys/fs/procfs/procfs_vnops.c +++ b/sys/fs/procfs/procfs_vnops.c @@ -159,7 +159,7 @@ procfs_open(ap) p1 = ap->a_td->td_proc; error = p_candebug(p1, p2); if (error) - return (error); + goto out; if (ap->a_mode & FWRITE) pfs->pfs_flags = ap->a_mode & (FWRITE|O_EXCL); |