s390/zcrypt: Use kmemdup to replace kmalloc + memcpy
authorzhong jiang <zhongjiang@huawei.com>
Sat, 8 Sep 2018 08:50:21 +0000 (16:50 +0800)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 20 Sep 2018 11:20:27 +0000 (13:20 +0200)
commit827fd299a16404e1b8a64e5eb1830244ccd395cd
treeea42a7e86c408416cfc791dbd4ff0a6c55b0df76
parent6779df406b27ce44d989e965169db39fb58a7efa
s390/zcrypt: Use kmemdup to replace kmalloc + memcpy

kmemdup has implemented the function that kmalloc() + memcpy() will
do. We prefer to use the kmemdup function rather than an open coded
implementation.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/crypto/zcrypt_msgtype6.c