From: Stephen Boyd Date: Fri, 25 Jul 2014 22:19:18 +0000 (-0700) Subject: hwrng: Pass entropy to add_hwgenerator_randomness() in bits, not bytes X-Git-Tag: omap-for-v3.17/fixes-against-rc2~150^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e02b876597777ab26288dd2611a97b597d14d661;p=pandora-kernel.git 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 Signed-off-by: Stephen Boyd Signed-off-by: Theodore Ts'o --- Reading git-diff-tree failed