From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx> Date: Sun, 22 Jan 2017 19:06:54 +0100 Several update suggestions were taken into account from static source code analysis. Markus Elfring (9): Return directly after a failed copy_from_user() in kvm_vm_compat_ioctl() Move error code settings in kvm_vm_ioctl() Move error code settings in kvm_vcpu_compat_ioctl() Move error code settings in kvm_vcpu_ioctl() Improve size determinations in kvm_vcpu_ioctl() Return an error code only as a constant in kvm_get_dirty_log_protect() Return an error code only as a constant in kvm_get_dirty_log() Adjust seven checks for null pointers Improve another size determination in kvm_create_vm() virt/kvm/kvm_main.c | 278 +++++++++++++++++++++++----------------------------- 1 file changed, 120 insertions(+), 158 deletions(-) -- 2.11.0