do_sigaltstack: small cleanups

The previous commit ("do_sigaltstack: avoid copying 'stack_t' as a
structure to user space") fixed a real bug. This one just cleans up the
copy from user space to that gcc can generate better code for it (and so
that it looks the same as the later copy back to user space).

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

+6 -4
+6 -4
kernel/signal.c
··· 2464 int ss_flags; 2465 2466 error = -EFAULT; 2467 - if (!access_ok(VERIFY_READ, uss, sizeof(*uss)) 2468 - || __get_user(ss_sp, &uss->ss_sp) 2469 - || __get_user(ss_flags, &uss->ss_flags) 2470 - || __get_user(ss_size, &uss->ss_size)) 2471 goto out; 2472 2473 error = -EPERM;
··· 2464 int ss_flags; 2465 2466 error = -EFAULT; 2467 + if (!access_ok(VERIFY_READ, uss, sizeof(*uss))) 2468 + goto out; 2469 + error = __get_user(ss_sp, &uss->ss_sp) | 2470 + __get_user(ss_flags, &uss->ss_flags) | 2471 + __get_user(ss_size, &uss->ss_size); 2472 + if (error) 2473 goto out; 2474 2475 error = -EPERM;