1
0
Fork 0

crypto: algif_rng - zeroize buffer with random data

Due to the change to RNGs to always return zero in success case, the RNG
interface must zeroize the buffer with the length provided by the
caller.

Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
wifi-calibration
Stephan Mueller 2015-03-13 11:44:07 +01:00 committed by Herbert Xu
parent 5986ac4fcb
commit 2ef4d5c43d
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ static int rng_recvmsg(struct kiocb *unused, struct socket *sock,
return genlen;
err = memcpy_to_msg(msg, result, len);
memzero_explicit(result, genlen);
memzero_explicit(result, len);
return err ? err : len;
}