commit | b4d93c6f89688a1e18fc1e4d8c089e163c1ce54f | [log] [tgz] |
---|---|---|
author | Theodore Ts'o <tytso@mit.edu> | Wed Jun 07 19:01:32 2017 -0400 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Apr 13 19:48:32 2018 +0200 |
tree | c1899216c778c22ea56ac4dade06d46b94548acc | |
parent | 32a1f12961b485a02ba84ecddf39c17deeb345d7 [diff] |
random: use lockless method of accessing and updating f->reg_idx commit 92e75428ffc90e2a0321062379f883f3671cfebe upstream. Linus pointed out that there is a much more efficient way of avoiding the problem that we were trying to address in commit 9dfa7bba35ac0: "fix race in drivers/char/random.c:get_reg()". Signed-off-by: Theodore Ts'o <tytso@mit.edu> Cc: Michael Schmitz <schmitzmic@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>