diff options
author | jhb <jhb@FreeBSD.org> | 2003-03-12 16:14:55 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-03-12 16:14:55 +0000 |
commit | 7510e91aa212259c9dc6299de44a3aa9ab9e0c8b (patch) | |
tree | 9fe79ec022ed441b321e534a644391a421526f0c /sys/dev/sio/sio.c | |
parent | 00b21712dfd88a8b0f5bb317c0ed75a6f7199ede (diff) | |
download | FreeBSD-src-7510e91aa212259c9dc6299de44a3aa9ab9e0c8b.zip FreeBSD-src-7510e91aa212259c9dc6299de44a3aa9ab9e0c8b.tar.gz |
- Avoid dropping the proc lock around a simple permissions check and just
hold hold it across the check to avoid extra lock operations in the
common case.
- Copy in the new args to a temporary pargs structure before we drop the
reference to the old one. Thus, if the copyin() fails, the process
arguments are unchanged rather than being deleted. Also, p_args is no
longer NULL during the sysctl operation.
Diffstat (limited to 'sys/dev/sio/sio.c')
0 files changed, 0 insertions, 0 deletions