VMCI: Use memdup_user() rather than duplicating its implementation
authorWen Yang <wen.yang99@zte.com.cn>
Mon, 10 Dec 2018 11:36:07 +0000 (19:36 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Dec 2018 09:26:31 +0000 (10:26 +0100)
commit8995fa1e1c9bcb76d407b860770e640b60ed8c76
treeb72a5a69c9b9a0fbacd858b2cd795d0e89cb720d
parentf88fd666051b08eb3f3118e2dd8508bf0247af4c
VMCI: Use memdup_user() rather than duplicating its implementation

Reuse existing functionality from memdup_user() instead of keeping
duplicate source code.

This issue was detected by using the Coccinelle software.

Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
CC: Arnd Bergmann <arnd@arndb.de>
CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
CC: linux-kernel@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/vmw_vmci/vmci_host.c