Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109312745
D34177.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D34177.diff
View Options
diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c
--- a/sys/compat/freebsd32/freebsd32_misc.c
+++ b/sys/compat/freebsd32/freebsd32_misc.c
@@ -1026,15 +1026,8 @@
case PT_SETDBREGS:
error = copyin(uap->addr, &r.dbreg, sizeof(r.dbreg));
break;
- case PT_SETREGSET:
- error = copyin(uap->addr, &r32.vec, sizeof(r32.vec));
- if (error != 0)
- break;
-
- r.vec.iov_len = r32.vec.iov_len;
- r.vec.iov_base = PTRIN(r32.vec.iov_base);
- break;
case PT_GETREGSET:
+ case PT_SETREGSET:
error = copyin(uap->addr, &r32.vec, sizeof(r32.vec));
if (error != 0)
break;
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c
--- a/sys/kern/sys_process.c
+++ b/sys/kern/sys_process.c
@@ -627,10 +627,8 @@
case PT_GETDBREGS:
bzero(&r.dbreg, sizeof(r.dbreg));
break;
- case PT_SETREGSET:
- error = copyin(uap->addr, &r.vec, sizeof(r.vec));
- break;
case PT_GETREGSET:
+ case PT_SETREGSET:
error = copyin(uap->addr, &r.vec, sizeof(r.vec));
break;
case PT_SETREGS:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 4, 10:43 AM (20 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16452196
Default Alt Text
D34177.diff (1 KB)
Attached To
Mode
D34177: Trim duplicate code for copying in iovecs for PT_[GS]ETREGSET.
Attached
Detach File
Event Timeline
Log In to Comment