summaryrefslogtreecommitdiffstats
path: root/sys/fs/procfs/procfs_dbregs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs/procfs/procfs_dbregs.c')
-rw-r--r--sys/fs/procfs/procfs_dbregs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/fs/procfs/procfs_dbregs.c b/sys/fs/procfs/procfs_dbregs.c
index c30f231..d985245 100644
--- a/sys/fs/procfs/procfs_dbregs.c
+++ b/sys/fs/procfs/procfs_dbregs.c
@@ -95,6 +95,9 @@ procfs_doprocdbregs(PFS_FILL_ARGS)
int wrap32 = 0;
#endif
+ if (uio->uio_offset != 0)
+ return (0);
+
PROC_LOCK(p);
KASSERT(p->p_lock > 0, ("proc not held"));
if (p_candebug(td, p) != 0) {
@@ -128,6 +131,5 @@ procfs_doprocdbregs(PFS_FILL_ARGS)
}
PROC_UNLOCK(p);
- uio->uio_offset = 0;
return (error);
}
OpenPOWER on IntegriCloud