random: fix error in entropy extraction (CVE-2007-2453 1 of 2)
commit5561123a8a3a55328174164901ef66f7a5ec2130
authorMatt Mackall <mpm@selenic.com>
Sat, 6 Oct 2007 22:19:10 +0000 (7 00:19 +0200)
committerAdrian Bunk <bunk@kernel.org>
Sat, 6 Oct 2007 22:19:10 +0000 (7 00:19 +0200)
treed4e6f7fd90bf053b62c3ed0ddf8fb4e79b6abdbf
parent9236d592ceee5d4033cd90d2f7d02440aea9b778
random: fix error in entropy extraction (CVE-2007-2453 1 of 2)

Fix cast error in entropy extraction.
Add comments explaining the magic 16.
Remove extra confusing loop variable.

Signed-off-by: Matt Mackall <mpm@selenic.com>
Acked-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
drivers/char/random.c