]> git.baikalelectronics.ru Git - kernel.git/commit
random: drop weird m_time/a_time manipulation
authorMatt Mackall <mpm@selenic.com>
Fri, 29 Jan 2010 08:50:36 +0000 (21:50 +1300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 1 Feb 2010 19:50:23 +0000 (06:50 +1100)
commit61a683c30d4d0c6a7d88b7e8feb00a71190f6d34
tree3a65c1d6636f24e3edc175b54fabfdfd1fed91ef
parentf9d0446d803ec9799178e95259f6c790f068ee0f
random: drop weird m_time/a_time manipulation

No other driver does anything remotely like this that I know of except
for the tty drivers, and I can't see any reason for random/urandom to do
it. In fact, it's a (trivial, harmless) timing information leak. And
obviously, it generates power- and flash-cycle wasting I/O, especially
if combined with something like hwrngd. Also, it breaks ubifs's
expectations.

Signed-off-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/random.c