]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
KVM: arm64: vgic: Use {get,put}_user() instead of copy_{from.to}_user
authorMarc Zyngier <maz@kernel.org>
Tue, 5 Jul 2022 10:27:37 +0000 (11:27 +0100)
committerMarc Zyngier <maz@kernel.org>
Sun, 17 Jul 2022 10:55:33 +0000 (11:55 +0100)
commitd7df6f282db67677c06456fd29d47eda0ba060b9
treeba7382184337ed0547fd4d568f64cecf75d4e792
parent7e9f723c2a90e41407d5889700169be4797a2009
KVM: arm64: vgic: Use {get,put}_user() instead of copy_{from.to}_user

Tidy-up vgic_get_common_attr() and vgic_set_common_attr() to use
{get,put}_user() instead of the more complex (and less type-safe)
copy_{from,to}_user().

Reviewed-by: Reiji Watanabe <reijiw@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/vgic/vgic-kvm-device.c