]> git.baikalelectronics.ru Git - kernel.git/commit
random: only update the last_pulled time if we actually transferred entropy
authorTheodore Ts'o <tytso@mit.edu>
Wed, 11 Jun 2014 03:18:16 +0000 (23:18 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 15 Jul 2014 08:49:39 +0000 (04:49 -0400)
commit849041c32104f14a72dc7e2c2a565e1937e4137e
tree6498e87fd912d2f90905a8bd71a602930fd9905e
parent9ab198b0b8b3e35c9267a815e6b188e04c75cf94
random: only update the last_pulled time if we actually transferred entropy

In xfer_secondary_pull(), check to make sure we need to pull from the
secondary pool before checking and potentially updating the
last_pulled time.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: George Spelvin <linux@horizon.com>
drivers/char/random.c