crypto: testmgr - use kmemdup instead of kmalloc+memcpy
authorEric Biggers <ebiggers@google.com>
Fri, 30 Dec 2016 20:12:00 +0000 (14:12 -0600)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 12 Jan 2017 16:24:37 +0000 (00:24 +0800)
commitd2110224a66779fc2c833d2c16caa73e2e23591e
tree71d4acef30e32953db70b68e68cb004be08a6fb9
parent4cf0662888026d5c1b62ed3fa8dc048a2ff2e124
crypto: testmgr - use kmemdup instead of kmalloc+memcpy

It's recommended to use kmemdup instead of kmalloc followed by memcpy.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/testmgr.c