Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 988
b: refs/heads/master
c: ea66e8a
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed May 5, 2005
1 parent 96d2cb0 commit 18fa66b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fd7aab9c1a4705ed45fe01a7ff108ce9823b0830
refs/heads/master: ea66e8a3b6c4760e8fbf59b1becb6bd8e3dd5376
5 changes: 3 additions & 2 deletions trunk/arch/um/sys-i386/ldt.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ int sys_modify_ldt_tt(int func, void __user *ptr, unsigned long bytecount)
#endif

#ifdef CONFIG_MODE_SKAS
extern int userspace_pid;
extern int userspace_pid[];

#include "skas_ptrace.h"

Expand Down Expand Up @@ -56,7 +56,8 @@ int sys_modify_ldt_skas(int func, void __user *ptr, unsigned long bytecount)
ldt = ((struct ptrace_ldt) { .func = func,
.ptr = buf,
.bytecount = bytecount });
res = ptrace(PTRACE_LDT, userspace_pid, 0, (unsigned long) &ldt);
#warning Need to look up userspace_pid by cpu
res = ptrace(PTRACE_LDT, userspace_pid[0], 0, (unsigned long) &ldt);
if(res < 0)
goto out;

Expand Down

0 comments on commit 18fa66b

Please sign in to comment.