]> git.baikalelectronics.ru Git - kernel.git/commit
copy_regset_to_user(): do all copyout at once.
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 17 Feb 2020 17:25:14 +0000 (12:25 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 27 Jul 2020 18:31:07 +0000 (14:31 -0400)
commit44febed6f186cd259e12a288611ed48503ac9c4a
tree5d62016a11db4117707189853899ee466b5bcafb
parent82aa7fa5c47e8c1031cda83d0dd053fa6392100f
copy_regset_to_user(): do all copyout at once.

Turn copy_regset_to_user() into regset_get_alloc() + copy_to_user().
Now all ->get() calls have a kernel buffer as destination.

Note that we'd already eliminated the callers of copy_regset_to_user()
with non-zero offset; now that argument is simply unused.

Uninlined, while we are at it.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/regset.h
kernel/regset.c