OSDN Git Service

ARM: 8792/1: oabi-compat: copy oabi events using __copy_to_user()
authorJulien Thierry <julien.thierry@arm.com>
Tue, 11 Sep 2018 09:12:49 +0000 (10:12 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Fri, 5 Oct 2018 09:51:15 +0000 (10:51 +0100)
commit319508902600c2688e057750148487996396e9ca
tree736da190a255a6e245690ec55fe4002fa50b5ce0
parent3aa2df6ec2ca6bc143a65351cca4266d03a8bc41
ARM: 8792/1: oabi-compat: copy oabi events using __copy_to_user()

Copy events to user using __copy_to_user() rather than copy members of
individually with __put_user_error().
This has the benefit of disabling/enabling PAN once per event intead of
once per event member.

Signed-off-by: Julien Thierry <julien.thierry@arm.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/kernel/sys_oabi-compat.c