diff options
author | Jacques Vidrine <nectar@FreeBSD.org> | 2003-10-04 16:14:25 +0000 |
---|---|---|
committer | Jacques Vidrine <nectar@FreeBSD.org> | 2003-10-04 16:14:25 +0000 |
commit | 2c14da046f394ea665513f323eb5872ed295e081 (patch) | |
tree | 41f29abfa9c7914f1054b9cdb16e93f02776e32f | |
parent | ade7758ade6465b42fa49f0b7413a9827aea21fb (diff) | |
download | src-releng/4.3.tar.gz src-releng/4.3.zip |
MFS 1.10.2.5: Unbreak read/write behavior (introduced in previous revision).releng/4.3
Notes
Notes:
svn path=/releng/4.3/; revision=120752
-rw-r--r-- | sys/miscfs/procfs/procfs_regs.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/miscfs/procfs/procfs_regs.c b/sys/miscfs/procfs/procfs_regs.c index 84be07d038dd..b0e9ea842c3f 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; |