VMCI: use memdup_user().
authorMuhammad Falak R Wani <falakreyaz@gmail.com>
Fri, 20 May 2016 12:18:56 +0000 (17:48 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Aug 2016 11:18:10 +0000 (13:18 +0200)
commit655745b0d1ebeceb0453f1c6adca154a4fac0ad5
tree038d825baf87f9f7a7845c52e3203aa2d0ef41fc
parentb58189b3c5cf54689a0c154e4d9cff918a29ab0b
VMCI: use memdup_user().

Use memdup_user to duplicate a memory region from user-space to
kernel-space, instead of open coding using kmalloc & copy_from_user.

Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/vmw_vmci/vmci_host.c