summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2014-07-26 00:19:18 +0200
committerTheodore Ts'o <tytso@mit.edu>2014-08-05 22:50:10 +0200
commite02b876597777ab26288dd2611a97b597d14d661 (patch)
tree37bb8eb37e3d63932794f878a84d92dc8830e97f /net
parentrandom: limit the contribution of the hw rng to at most half (diff)
downloadlinux-e02b876597777ab26288dd2611a97b597d14d661.tar.xz
linux-e02b876597777ab26288dd2611a97b597d14d661.zip
hwrng: Pass entropy to add_hwgenerator_randomness() in bits, not bytes
rng_get_data() returns the number of bytes read from the hardware. The entropy argument to add_hwgenerator_randomness() is passed directly to credit_entropy_bits() so we should be passing the number of bits, not bytes here. Fixes: be4000bc464 "hwrng: create filler thread" Acked-by: Torsten Duwe <duwe@suse.de> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions