X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?p=kvmfornfv.git;a=blobdiff_plain;f=kernel%2Fcrypto%2Falgif_rng.c;h=150c2b6480ed2eefd53deb4bc56ba6b45c355aa3;hp=8109aaad2726170ed1e5b9238dbd278220d68079;hb=e09b41010ba33a20a87472ee821fa407a5b8da36;hpb=f93b97fd65072de626c074dbe099a1fff05ce060 diff --git a/kernel/crypto/algif_rng.c b/kernel/crypto/algif_rng.c index 8109aaad2..150c2b648 100644 --- a/kernel/crypto/algif_rng.c +++ b/kernel/crypto/algif_rng.c @@ -164,7 +164,7 @@ static int rng_setkey(void *private, const u8 *seed, unsigned int seedlen) * Check whether seedlen is of sufficient size is done in RNG * implementations. */ - return crypto_rng_reset(private, (u8 *)seed, seedlen); + return crypto_rng_reset(private, seed, seedlen); } static const struct af_alg_type algif_type_rng = {