crypto: ccp - Use memdup_user() rather than duplicating its implementation
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 5 Mar 2018 12:50:13 +0000 (13:50 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 16 Mar 2018 15:33:29 +0000 (23:33 +0800)
commit6c51ddddac46ab124a3f10fd17cf34979670c1ce
treea5fc13cdbc5f27a49eafab015647cd1802797254
parent0ee991be4cdd88587aedbf68cdacd1765f57236a
crypto: ccp - 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: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Brijesh Singh <brijesh.singh@amd.com>
Acked-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/psp-dev.c