Commit 7f0e3aee authored by Anton Blanchard's avatar Anton Blanchard

Merge samba.org:/scratch/anton/linux-2.5

into samba.org:/scratch/anton/for-alan
parents 52660971 99a6e15b
...@@ -64,9 +64,10 @@ ENTRY(do_magic) ...@@ -64,9 +64,10 @@ ENTRY(do_magic)
jb .L1455 jb .L1455
.p2align 4,,7 .p2align 4,,7
.L1453: .L1453:
movl $104,%eax movl $__USER_DS,%eax
movw %ax, %ds movw %ax, %ds
movw %ax, %es
movl saved_context_esp, %esp movl saved_context_esp, %esp
movl saved_context_ebp, %ebp movl saved_context_ebp, %ebp
movl saved_context_eax, %eax movl saved_context_eax, %eax
......
...@@ -471,7 +471,7 @@ asmlinkage long sys_poll(struct pollfd * ufds, unsigned int nfds, long timeout) ...@@ -471,7 +471,7 @@ asmlinkage long sys_poll(struct pollfd * ufds, unsigned int nfds, long timeout)
walk->next = pp; walk->next = pp;
walk = pp; walk = pp;
if (copy_from_user(pp+1, ufds + nfds-i, if (copy_from_user(pp->entries, ufds + nfds-i,
sizeof(struct pollfd)*pp->len)) { sizeof(struct pollfd)*pp->len)) {
err = -EFAULT; err = -EFAULT;
goto out_fds; goto out_fds;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment