crypto: amlogic - Use kmemdup in meson_aes_setkey()
authorYueHaibing <yuehaibing@huawei.com>
Tue, 29 Oct 2019 01:55:23 +0000 (01:55 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 8 Nov 2019 15:00:46 +0000 (23:00 +0800)
commitd832a6128558503feb6ab18ac6e2cdefbc32e5a9
tree1f2c708e4be6d61ad62d9de78b6ed4280767754d
parent427e6e3ad98ce17dae2ef61f56664c7b97745320
crypto: amlogic - Use kmemdup in meson_aes_setkey()

Use kmemdup rather than duplicating its implementation

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/amlogic/amlogic-gxl-cipher.c