crypto: ccp - Use kmemdup in ccp_copy_and_save_keypart()
authorYueHaibing <yuehaibing@huawei.com>
Sat, 30 Mar 2019 01:43:16 +0000 (01:43 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 8 Apr 2019 06:36:16 +0000 (14:36 +0800)
commit8316da02e3e07b0da9b2d812a619b5513c7f59d2
tree6455c38ab2fe6a2968ef12e51c71ea607fbab43f
parent61abc356bf310d346d2d469cb009f6d4334f34de
crypto: ccp - Use kmemdup in ccp_copy_and_save_keypart()

Use kmemdup rather than duplicating its implementation

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-crypto-rsa.c