aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacques Vidrine <nectar@FreeBSD.org>2003-10-04 16:14:25 +0000
committerJacques Vidrine <nectar@FreeBSD.org>2003-10-04 16:14:25 +0000
commit23f9108859a7d6402960469d3a1ce7027b289d0a (patch)
treea33ec39c706449c94983bda7fc8138ebbdb9d946
parent13bba0f1a042803c0d4e5135d0d34ae838a3f9c3 (diff)
downloadsrc-23f9108859a7d6402960469d3a1ce7027b289d0a.tar.gz
src-23f9108859a7d6402960469d3a1ce7027b289d0a.zip
MFS 1.10.2.5: Unbreak read/write behavior (introduced in previous revision).
Notes
Notes: svn path=/releng/4.4/; revision=120752
-rw-r--r--sys/miscfs/procfs/procfs_regs.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/miscfs/procfs/procfs_regs.c b/sys/miscfs/procfs/procfs_regs.c
index 8604d0a4a9a7..415c007ebbf1 100644
--- a/sys/miscfs/procfs/procfs_regs.c
+++ b/sys/miscfs/procfs/procfs_regs.c
@@ -57,8 +57,6 @@ procfs_doregs(curp, p, pfs, uio)
{
int error;
struct reg r;
- char *kv;
- int kl;
/* Can't trace a process that's currently exec'ing. */
if ((p->p_flag & P_INEXEC) != 0)
@@ -70,7 +68,7 @@ procfs_doregs(curp, p, pfs, uio)
error = procfs_read_regs(p, &r);
if (error == 0)
- error = uiomove(&r, sizeof(r), uio);
+ error = uiomove_frombuf(&r, sizeof(r), uio);
if (error == 0 && uio->uio_rw == UIO_WRITE) {
if (p->p_stat != SSTOP)
error = EBUSY;