summaryrefslogtreecommitdiffstats
path: root/arch/um
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2005-06-25 14:55:19 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-25 16:24:34 -0700
commit350d5bd84ecda038bb482ab5f2596bdca68109d9 (patch)
tree42a1e0f4b0499fb3f7d90e64ebc381b09dc193d6 /arch/um
parent2a96206559a8c3a18478a6288ac426d716bbd99c (diff)
downloadop-kernel-dev-350d5bd84ecda038bb482ab5f2596bdca68109d9.zip
op-kernel-dev-350d5bd84ecda038bb482ab5f2596bdca68109d9.tar.gz
[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')
-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 03913ca..4efc69a 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;
OpenPOWER on IntegriCloud