]> git.karo-electronics.de Git - linux-beck.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)
commitcff850312cc7c0e0b9fe8b573687812dea232031
tree6498e87fd912d2f90905a8bd71a602930fd9905e
parent85608f8e16c28f818f6bb9918958d231afa8bec2
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