summaryrefslogtreecommitdiffstats
path: root/arch/um/sys-i386/signal.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2005-06-25 23:55:19 +0200
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-26 01:24:34 +0200
commit350d5bd84ecda038bb482ab5f2596bdca68109d9 (patch)
tree42a1e0f4b0499fb3f7d90e64ebc381b09dc193d6 /arch/um/sys-i386/signal.c
parent[PATCH] Update video-after-suspend documentation (diff)
downloadlinux-350d5bd84ecda038bb482ab5f2596bdca68109d9.tar.xz
linux-350d5bd84ecda038bb482ab5f2596bdca68109d9.zip
[PATCH] uml: fix sizeof usage
Size of pointer doesn't seem right, but maybe my solution isn't either (sig_size maybe?). Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Jeff Dike <jdike@addtoit.com> Cc: Paolo Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um/sys-i386/signal.c')
-rw-r--r--arch/um/sys-i386/signal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/sys-i386/signal.c b/arch/um/sys-i386/signal.c
index 03913ca5d256..4efc69a039d7 100644
--- a/arch/um/sys-i386/signal.c
+++ b/arch/um/sys-i386/signal.c
@@ -312,7 +312,7 @@ long sys_sigreturn(struct pt_regs regs)
unsigned long __user *extramask = frame->extramask;
int sig_size = (_NSIG_WORDS - 1) * sizeof(unsigned long);
- if(copy_from_user(&set.sig[0], oldmask, sizeof(&set.sig[0])) ||
+ if(copy_from_user(&set.sig[0], oldmask, sizeof(set.sig[0])) ||
copy_from_user(&set.sig[1], extramask, sig_size))
goto segfault;