patch-2.4.27 linux-2.4.27/arch/sparc64/kernel/sys_sunos32.c
Next file: linux-2.4.27/arch/sparc64/kernel/unaligned.c
Previous file: linux-2.4.27/arch/sparc64/kernel/sys_sparc32.c
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
2004-08-07 16:26:04.622345463 -0700
- Orig file:
linux-2.4.26/arch/sparc64/kernel/sys_sunos32.c
- Orig date:
2004-04-14 06:05:28.000000000 -0700
diff -urN linux-2.4.26/arch/sparc64/kernel/sys_sunos32.c linux-2.4.27/arch/sparc64/kernel/sys_sunos32.c
@@ -296,7 +296,7 @@
put_user(reclen, &dirent->d_reclen);
copy_to_user(dirent->d_name, name, namlen);
put_user(0, dirent->d_name + namlen);
- ((char *) dirent) += reclen;
+ dirent = (void *) dirent + reclen;
buf->curr = dirent;
buf->count -= reclen;
return 0;
@@ -376,7 +376,7 @@
put_user(reclen, &dirent->d_reclen);
copy_to_user(dirent->d_name, name, namlen);
put_user(0, dirent->d_name + namlen);
- ((char *) dirent) += reclen;
+ dirent = (void *) dirent + reclen;
buf->curr = dirent;
buf->count -= reclen;
return 0;
@@ -1309,10 +1309,12 @@
if (act) {
old_sigset_t32 mask;
+ u32 u_handler;
- if (get_user((long)new_ka.sa.sa_handler, &((struct old_sigaction32 *)A(act))->sa_handler) ||
+ if (get_user(u_handler, &((struct old_sigaction32 *)A(act))->sa_handler) ||
__get_user(new_ka.sa.sa_flags, &((struct old_sigaction32 *)A(act))->sa_flags))
return -EFAULT;
+ new_ka.sa.sa_handler = (void *) (long) u_handler;
__get_user(mask, &((struct old_sigaction32 *)A(act))->sa_mask);
new_ka.sa.sa_restorer = NULL;
new_ka.ka_restorer = NULL;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)