[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>
This commit is contained in:
parent
2a96206559
commit
350d5bd84e
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue