staging: greybus: es2: Use kmemdup instead of kmalloc and memcpy
authorsayli karnik <karniksayli1995@gmail.com>
Sun, 16 Oct 2016 08:49:48 +0000 (14:19 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Oct 2016 07:38:37 +0000 (09:38 +0200)
commit9edae49285051dc9312392df0d07c85f236a4d4b
treebbe993c837d2cbe0f025c664504f961cd11513f2
parentd0af1bd5f6f44971bea2e45acfe07de629734a3e
staging: greybus: es2: Use kmemdup instead of kmalloc and memcpy

This patch replaces kmalloc and memcpy with kmemdup for duplication of
memory.

Signed-off-by: sayli karnik <karniksayli1995@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/es2.c